mc 3 #82
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: Unit tests | |
| on: [pull_request] | |
| jobs: | |
| test: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Poetry | |
| uses: snok/install-poetry@v1 | |
| - name: Install dependencies | |
| run: poetry install | |
| - name: Download mypy baseline | |
| uses: actions/download-artifact@v4 | |
| continue-on-error: true | |
| with: | |
| name: mypy-baseline | |
| path: tests/artifacts | |
| - name: Test | |
| shell: bash | |
| run: poetry run j --log-level info ci | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| - name: Post Test Report | |
| if: always() && github.actor != 'dependabot[bot]' | |
| uses: dorny/test-reporter@v1 | |
| with: | |
| name: pytest | |
| path: tests/artifacts/pytest.xml | |
| reporter: java-junit | |
| fail-on-error: true |