-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (41 loc) · 1002 Bytes
/
unit_tests.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
name: Run fugw pytests
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
unittest:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
version_python: "3.8"
- os: ubuntu-latest
version_python: "3.9"
- os: ubuntu-latest
version_python: "3.10"
- os: ubuntu-latest
version_python: "3.11"
- os: macos-latest
version_python: "3.10"
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.version_python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[test]
- name: Lint with pflake8
run: |
pflake8 src tests examples
- name: Test with pytest
run: |
pytest