-
Notifications
You must be signed in to change notification settings - Fork 892
47 lines (47 loc) · 1.3 KB
/
unit.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
name: Unit Tests
on:
pull_request:
push:
branches:
- main
concurrency:
group: 'ci-${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true
defaults:
run:
shell: sh -ex {0}
jobs:
unittests:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
toxenv: [py3]
slug: [""]
experimental: [false]
check-latest: [false]
continue-on-error: [false]
include:
- python-version: "3.8"
toxenv: lowest-supported
slug: (lowest-supported)
continue-on-error: false
check-latest: false
experimental: false
name: Python ${{matrix.python-version}} ${{ matrix.slug }}
runs-on: ubuntu-24.04
continue-on-error: ${{ matrix.experimental }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
# Fetch all tags for tools/read-version
fetch-depth: 0
- name: Install Python ${{matrix.python-version}}
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}
check-latest: ${{matrix.check-latest}}
- name: Install tox
run: pip install tox
- name: Run unittest
run: tox -e ${{ matrix.toxenv }} -- --color=yes