-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtests.yml
More file actions
43 lines (36 loc) · 959 Bytes
/
tests.yml
File metadata and controls
43 lines (36 loc) · 959 Bytes
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
name: Tests
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "**.md"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- name: Checkout source
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: Cache tox
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: .tox
key: tox-${{hashFiles('pyproject.toml') }}
- name: Set up python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: python -m pip install tox tox-gh
- name: Test with tox
run: tox run