-
Notifications
You must be signed in to change notification settings - Fork 65
39 lines (31 loc) · 937 Bytes
/
main.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
name: CI
on: [push]
jobs:
build:
name: Testing on ${{ matrix.os }} with Python version ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-latest']
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install requirements
run: pip install -r requirements.txt
- name: Run tests with coverage and create report as xml file
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage.xml
- name: Run Flake8
run: flake8
- name: Run Mypy
run: mypy --strict ./pyais