-
Notifications
You must be signed in to change notification settings - Fork 13
52 lines (46 loc) · 1.45 KB
/
Copy pathpython-tests.yml
File metadata and controls
52 lines (46 loc) · 1.45 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Python tests
on:
push:
branches: [main]
pull_request:
# Check all PR
concurrency:
group: python-tests-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
python-tests:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Python ${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
python-version: "3.10"
- os: ubuntu-24.04
# TorchScript support is dropped in Python 3.14, so we keep a runner
# for testing Python 3.13, making sure everything works fine there.
python-version: "3.14"
- os: ubuntu-24.04
python-version: "3.14"
- os: macos-15
python-version: "3.14"
- os: windows-2022
python-version: "3.14"
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: setup Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: install tests dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: run tests
run: tox -e lint,numpy-tests,cupy-tests,torch-tests,torchscript-tests
env:
# Use the CPU only version of torch when building/running the code
PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu