Skip to content

Commit 20d9de6

Browse files
committed
add preview versions in pip
1 parent 7f21c4f commit 20d9de6

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/latest.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Python package (latest)
2+
3+
# This is a variant of the workflow in build.yml to check incompatibilities for the
4+
# very latest versions of Python and the core dependencies.
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
14+
jobs:
15+
build:
16+
timeout-minutes: 30
17+
strategy:
18+
fail-fast: true
19+
matrix:
20+
os: [ubuntu-latest]
21+
python-version: ["3.14"]
22+
torch-version: ["2.9.1"]
23+
24+
runs-on: ${{ matrix.os }}
25+
26+
steps:
27+
- name: Cache dependencies
28+
id: pip-cache
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/.cache/pip
32+
key: pip-os_latest
33+
34+
- name: Checkout code
35+
uses: actions/checkout@v2
36+
37+
- name: Set up Python ${{ matrix.python-version }}
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
42+
- name: Install package
43+
run: |
44+
python -m pip install --upgrade pip setuptools wheel --pre
45+
python -m pip install --pre torch --extra-index-url https://download.pytorch.org/whl/cpu
46+
pip install --pre '.[dev]'
47+
48+
- name: Run pytest tests
49+
timeout-minutes: 15
50+
run: |
51+
make test
52+
53+
- name: Build package
54+
run: |
55+
make build

0 commit comments

Comments
 (0)