-
Notifications
You must be signed in to change notification settings - Fork 25
40 lines (37 loc) · 940 Bytes
/
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
name: Build and test
on:
# Run on pushes to master
push:
branches:
- master
# And all pull requests
pull_request:
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ['3.8', '3.9', '3.10', '3.11']
# Don't immediately kill all if one Python version fails
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
pip install flake8 pytest
- name: Lint
run: |
flake8 .
- name: Install
run: |
python -m pip install .
- name: Test
run: |
pytest tests