-
Notifications
You must be signed in to change notification settings - Fork 46
44 lines (42 loc) · 1.05 KB
/
ci.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
name: CI
on:
push:
branches: ["master"]
pull_request:
jobs:
# TODO
# pre-commit:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: "3.11"
# - uses: pre-commit/[email protected]
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- PYTHON_VERSION: "3.9"
os: ubuntu-latest
- PYTHON_VERSION: "3.10"
os: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.PYTHON_VERSION}}
- name: Configure TOX
run: |
pip install pip --upgrade
pip install tox codecov tox-gh-actions wheel
- name: Generate Report
run: |
pip install coverage
pip install .[test]
coverage run -m pytest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3