-
Notifications
You must be signed in to change notification settings - Fork 46
42 lines (40 loc) · 995 Bytes
/
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
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/action@v2.0.0
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: |
tox run
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3