-
Notifications
You must be signed in to change notification settings - Fork 496
45 lines (43 loc) · 1.31 KB
/
unittests.yaml
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
name: unittests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
exclude:
# lxml built-from-source fails or produces unreliable results on these platforms
# ... so skip these platforms
- os: windows-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.11"
include:
# set toxenv to py-darwin on macos (check tox.ini)
- toxenv: py
- os: macos-latest
toxenv: py-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install "tox<4"
- run: tox -e ${{ matrix.toxenv }}
# Provide code coverage reports if Linux and last py version
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
name: coveralls.io
uses: AndreMiras/coveralls-python-action@develop
with:
# coveralls repo token
github-token: "SmlfzlVJy4ow55rduU7IU5GmmFCfAdGeq"