-
Notifications
You must be signed in to change notification settings - Fork 11
56 lines (56 loc) · 1.67 KB
/
coverage.yml
File metadata and controls
56 lines (56 loc) · 1.67 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
name: Testing
on: [push, workflow_dispatch]
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: ["ubuntu-latest"]
include:
- python-version: "3.6"
os: ubuntu-20.04
name: Python ${{ matrix.python-version }}-x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
pip install -r .github/build_requirements.txt -r requirements.txt
sudo apt-get update
sudo apt-get install libgl1-mesa-dev
- name: Print info
env:
PYUNITY_TESTING: 0
run: python -m pyunity -v
- name: Run tests
env:
full: 1
PYUNITY_INTERACTIVE: 0
run: pytest
- name: Run mypy
if: ${{ matrix.python-version == '3.11' }}
run: |
pip install mypy>=1.4.0
mypy -p pyunity
- name: Run stubtest
if: ${{ matrix.python-version == '3.11' }}
env:
PYUNITY_CHANGE_MODULE: 0
run: |
python -m mypy.stubtest --mypy-config-file pyproject.toml \
--ignore-unused-allowlist --allowlist .github/stubtest-ignore.txt \
pyunity
- name: Generate report
if: ${{ matrix.python-version == '3.11' }}
run: coverage xml
- name: Upload report
if: ${{ matrix.python-version == '3.11' }}
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false