Skip to content

Test access DROGON-READ shared-key #395

Test access DROGON-READ shared-key

Test access DROGON-READ shared-key #395

name: Test access DROGON-READ shared-key
on:
schedule:
- cron: "48 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: 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
env:
sharedkey: ${{ secrets.SHARED_KEY_DROGON_READ_DEV }}
run: |
pip list | grep -i sumo
echo "Length of sharedkey variable read from Github Secrets:" ${#sharedkey}
mkdir ~/.sumo
echo $sharedkey > ~/.sumo/88d2b022-3539-4dda-9e66-853801334a86.sharedkey
ls -l ~/.sumo/88d2b022-3539-4dda-9e66-853801334a86.sharedkey
pytest -s --timeout=300 tests/test_access/tst_access_drogon_read_login.py