Skip to content

Commit

Permalink
Rename yml
Browse files Browse the repository at this point in the history
  • Loading branch information
roywilly committed Dec 11, 2023
1 parent f21e843 commit d602fdd
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/run_tests_on_uploads_from_komodo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Verify case previously uploaded from komodo-releases repo

on:
pull_request:
branches: [main]
schedule:
- cron: "6 7 * * *"

jobs:
build_pywheels:
name: PY ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.11"]
os: [ubuntu-latest]
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v3

- name: Azure Login
uses: Azure/login@v1
with:
client-id: f96c150d-cacf-4257-9cc9-54b2c68ec4ce
tenant-id: 3aa4a235-b6e2-48d5-9195-7fcf05b459b0
subscription-id: 87897772-fb27-495f-ae40-486a2df57baa

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install fmu-sumo etc
run: >
python -m pip install --upgrade pip &&
python -m pip install .[test]
- name: Run tests
shell: bash
run: |
az --version
az account list
pip show sumo-wrapper-python
pip show fmu-sumo
pip show openvds
python -c 'import sys; print(sys.platform)'
python -c 'import os; import sys; print(os.path.dirname(sys.executable))'
access_token=$(az account get-access-token --scope api://88d2b022-3539-4dda-9e66-853801334a86/.default --query accessToken --output tsv)
export ACCESS_TOKEN=$access_token
pytest -s --timeout=500 ./tests/test_uploads_from_komodo.py

0 comments on commit d602fdd

Please sign in to comment.