-
Notifications
You must be signed in to change notification settings - Fork 6
64 lines (54 loc) · 1.55 KB
/
bleeding-edge.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
name: CI (bleeding edge)
# this workflow is heavily inspired from pandas, see
# https://github.com/pandas-dev/pandas/blob/master/.github/workflows/python-dev.yml
# goal: check stability against dev versions of Python, numpy, and matplotlib
on:
push:
branches:
- main
pull_request:
paths:
- .github/workflows/bleeding-edge.yaml
schedule:
# run this every Wednesday at 3 am UTC
- cron: 0 3 * * 3
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
name: Test nightly dependencies
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: |
**/pyproject.toml
- name: Install dependencies
run: |
uv venv -p 3.13
uv pip install --pre --no-build numpy matplotlib \
--extra-index-url \
https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
--index-strategy=unsafe-best-match
- name: Build library
run: uv pip install .
- name: Run test suite
# forcing bytecode compilation for colorspacious
# see https://github.com/astral-sh/uv/issues/4758
run: |
uv run --no-editable --compile-bytecode --group test \
pytest --color yes --mpl-results-path=test_results
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test_results
path: test_results/