chore(deps-dev): bump pytest from 8.4.2 to 9.0.0 #178
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
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: build (${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11","3.12"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Upgrade pip | |
| run: python -m pip install --upgrade pip | |
| - name: Install Poetry | |
| run: pip install poetry | |
| - name: Install dependencies | |
| run: poetry install --no-interaction | |
| - name: Ruff | |
| run: poetry run ruff check . | |
| - name: Black (check) | |
| run: poetry run black --check . | |
| - name: Pytest | |
| env: | |
| PYTHONPATH: src | |
| run: poetry run pytest -q | |
| - name: Mypy | |
| run: poetry run mypy src | |
| - name: Package & smoke-test CLI | |
| run: | | |
| poetry build | |
| poetry run python -m pip install . | |
| poetry run python -c "import sys, diff_risk_dashboard as m; print(sys.version); print(getattr(m, '__version__', '0.0.0'))" | |
| rm -rf _intel && mkdir -p _intel | |
| poetry run python -m diff_risk_dashboard.cli examples/sample_apv.json -f md -o _intel/report.md | |
| ls -l _intel/report.md && head -n 5 _intel/report.md | |
| - name: Upload sample report | |
| if: ${{ matrix.python-version == '3.12' }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sample-report | |
| path: _intel/report.md | |
| if-no-files-found: error |