-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (53 loc) · 1.28 KB
/
test.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: "Test"
on:
push:
pull_request:
schedule:
- cron: '0 18 * * *'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
flake8: [
'flake8==4.*',
'flake8==5.*',
'flake8==6.*',
'flake8==7.*',
'git+https://github.com/pycqa/flake8.git@main',
]
exclude:
- python: '3.7'
flake8: 'git+https://github.com/pycqa/flake8.git@main'
- python: '3.7'
flake8: 'flake8==7.*'
- python: '3.7'
flake8: 'flake8==6.*'
- python: '3.12'
flake8: 'flake8==4.*'
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install flake8-force
run: |
pip install "${{ matrix.flake8 }}"
pip install -v .
- name: Setup test environment
run: |
python -V
pip install pytest
pip freeze
- name: Run tests
run: |
pushd tests
python -m pytest .
popd
- name: Run flake8
run: |
flake8