-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1.06 KB
/
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
44
name: Test
on:
push:
branches: [master]
pull_request:
# Check all PR
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ["3.7", "3.8", "3.9", "3.10"]
include:
- os: windows-2019
python-version: "3.8"
- os: macos-11
python-version: "3.8"
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: setup MSVC command prompt
uses: ilammy/msvc-dev-cmd@v1
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install "tox <=4.14.0"
- name: run tests
run: tox
- name: run extra checks
run: |
./scripts/check-used-functions.py
- uses: codecov/codecov-action@v3
with:
file: .tox/coverage.xml
fail_ci_if_error: true
verbose: true