-
Notifications
You must be signed in to change notification settings - Fork 23
51 lines (39 loc) · 1.17 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
45
46
47
48
49
50
51
name: Run tests
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: run tests on ${{ matrix.os }} + Python ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: System information
run: python -c "import sys, platform; print(sys.platform, platform.machine())"
- name: Update pip
run: python -m pip install -U pip
- name: Install the package
run: python -m pip install .[test]
- name: Run tests
run: coverage run -m pymnet.tests
- name: Generate coverage report
run: coverage xml -o coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
slug: mnets/pymnet