Make linter happy #306
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
name: run tests for riseup-vpn-configurator | |
on: | |
push: | |
schedule: | |
- cron: '0 7 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
# we need to run everything as root because we make chown and need root for it ... | |
run: | | |
sudo useradd openvpn | |
# poetry 1.1.12 is too old (with --group dev instead of --dev), so wie use pip to install it | |
sudo pip install poetry | |
sudo poetry install | |
- name: Lint with flake8 | |
run: | | |
sudo poetry run flake8 --ignore=E501 --show-source --statistics | |
- name: Type check with mypy | |
run: | | |
sudo poetry run mypy riseup_vpn_configurator | |
- name: Test with pytest | |
run: | | |
sudo poetry run pytest -v -s tests |