runrms #349
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: runrms | |
| 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 * * *" | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| check-runrms: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - name: Install Ubuntu dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libegl1 | |
| - 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 runrms 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 -m "not onprem" --cov --cov-report term-missing |