feat: add integration test comparing local vs released versions #360
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: continuous-integration | |
| on: [workflow_dispatch, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install poetry | |
| poetry install | |
| - name: ruff | |
| run: | | |
| poetry run ruff check | |
| - name: run mypy | |
| run: | | |
| poetry run mypy reviewtally --python-version=${{ matrix.python-version }} | |
| - name: run unit tests | |
| run: | | |
| poetry run pytest -m "not integration" | |
| - name: install latest release for integration test | |
| run: | | |
| pip install review-tally | |
| - name: run integration tests | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| poetry run pytest tests/integration/ -v | |
| timeout-minutes: 10 | |
| - name: build package | |
| run: | | |
| poetry build |