-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (29 loc) · 902 Bytes
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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