Pre-commit hooks to handle #noqas #78
This file contains 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
--- | |
# yamllint disable rule:line-length | |
name: Tests | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
paths: | |
- '**.py' | |
- .github/scripts/change_apt_mirror.sh | |
- .github/workflows/run_tests.yml | |
- .github/scripts/run_tests.sh | |
jobs: | |
pip-install-and-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Change apt mirror | |
run: | | |
set -euxo pipefail | |
${GITHUB_WORKSPACE}/.github/scripts/change_apt_mirror.sh | |
- name: Run tests | |
run: ${GITHUB_WORKSPACE}/.github/scripts/run_tests.sh |