-
-
Notifications
You must be signed in to change notification settings - Fork 124
36 lines (34 loc) · 941 Bytes
/
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
name: Tests
on: [push, pull_request]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04 ]
python: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
variant: [ "py", "py-images" ]
include:
- os: macOS-12
python: "3.12"
variant: py-images
- os: windows-2022
python: "3.12"
variant: py-images
- os: windows-2022
name: python${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.variant }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: |
pyproject.toml
setup.py
- name: Install test dependency
run: pip install tox
- name: Run tests
run: tox
env:
TOXENV: ${{ matrix.variant }}