-
Notifications
You must be signed in to change notification settings - Fork 23
37 lines (34 loc) · 1.05 KB
/
python-package.yml
File metadata and controls
37 lines (34 loc) · 1.05 KB
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python basics
on:
- push
- pull_request
jobs:
tox:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: "3.10"
tox-env: py310
- python-version: "3.11"
tox-env: py311
- python-version: "3.12"
tox-env: py312
- python-version: "3.13"
tox-env: py313
- python-version: "3.14"
tox-env: py314
- python-version: "3.13"
tox-env: doc
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Run tox ${{ matrix.tox-env }}
run: uv run tox -e ${{ matrix.tox-env }}