Skip to content

Make linter happy

Make linter happy #306

Workflow file for this run

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