ENH: Create user session explicitly as primary auth #142
Workflow file for this run
This file contains hidden or 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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| release: | |
| types: | |
| - published | |
| schedule: | |
| # Run nightly to check that tests are working with latest dependencies | |
| - cron: "0 0 * * *" | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - name: Checkout commit locally | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install fmu-settings-api with dependencies | |
| if: ${{ always() }} | |
| run: | | |
| pip install -U pip | |
| pip install -e ".[dev]" | |
| - name: List all installed packages | |
| run: pip freeze | |
| - name: Ruff check | |
| if: ${{ always() }} | |
| run: ruff check | |
| - name: Ruff format | |
| if: ${{ always() }} | |
| run: ruff format --check | |
| - name: Check typing with mypy | |
| if: ${{ always() }} | |
| run: mypy src tests | |
| - name: Run tests | |
| if: ${{ always() }} | |
| run: pytest -n auto tests --cov=src/ --cov-report term-missing |