-
Notifications
You must be signed in to change notification settings - Fork 61
40 lines (38 loc) · 1.04 KB
/
test.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
name: Test
on:
push:
branches: [ master ]
pull_request:
jobs:
tests:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 7
matrix:
include:
- platform: ubuntu-latest
tox-env: "py39"
- platform: ubuntu-latest
tox-env: "py310"
- platform: ubuntu-latest
tox-env: "py311"
- platform: ubuntu-latest
tox-env: "py312"
- platform: ubuntu-latest
tox-env: "py313"
# test only on latest python for macos
- platform: macos-13
tox-env: "py313"
- platform: macos-latest
tox-env: "py313"
steps:
- uses: actions/checkout@v4
- name: Set up the latest version of uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: |
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv
- name: Test with tox
run: uvx --with tox-uv tox run -e ${{ matrix.tox-env }}