Continuous integration #480
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 | |
| run-name: Continuous integration | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| jobs: | |
| dependency_review: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: "Dependency Review" | |
| uses: actions/dependency-review-action@v4 | |
| paths_filter: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| src: "${{ steps.filter.outputs.src }}" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| filters: | | |
| src: | |
| - "src/**" | |
| - "assets/**" | |
| tox: | |
| needs: paths_filter | |
| if: ${{ needs.paths_filter.outputs.src == 'true' }} | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: .python-version | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install tox tox-gh-actions | |
| - name: Run tests | |
| run: tox | |
| lint: | |
| needs: paths_filter | |
| if: ${{ needs.paths_filter.outputs.src == 'true' }} | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: .python-version | |
| - name: Run pre-commit hooks | |
| run: | | |
| python -m pip install --upgrade pip pre-commit | |
| pre-commit run --all-files --show-diff-on-failure |