Test access DROGON-WRITE login #438
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test access DROGON-WRITE login | |
on: | |
schedule: | |
- cron: "56 4 * * *" | |
workflow_dispatch: | |
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@v4 | |
- name: Azure Login | |
uses: Azure/login@v2 | |
with: | |
client-id: 556cac03-e416-4ed6-86d7-d9d3f965d72e | |
tenant-id: 3aa4a235-b6e2-48d5-9195-7fcf05b459b0 | |
allow-no-subscriptions: true | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install fmu-sumo | |
run: > | |
python -m pip install --upgrade pip && | |
python -m pip install .[test] | |
- name: Run tests | |
shell: bash | |
run: | | |
az --version | |
az account list | |
pip list | grep -i sumo | |
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=300 tests/test_access/tst_access_drogon_write_login.py | |