forked from contourpy/contourpy
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (49 loc) · 1.76 KB
/
test_own_nightlies.yml
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
name: Test own nightly wheels
on:
workflow_dispatch:
schedule:
- cron: "42 06 * * SUN"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
PYTEST: python -m pytest -v -n auto --color=yes
jobs:
test_own_nightlies:
name: "${{ matrix.os }} deps ${{ matrix.dependencies }}"
if: github.event_name != 'schedule' || github.repository_owner == 'contourpy'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
python-version: ["3.12"]
dependencies: ["released", "nightlies"]
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install nightly dependencies
if: ${{ matrix.dependencies == 'nightlies'}}
run: |
python -m pip install --only-binary=:all: --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple contourpy[test]
- name: Install released dependencies
if: ${{ matrix.dependencies == 'released'}}
run: |
python -m pip install --only-binary=:all: contourpy[test]
python -m pip install --only-binary=:all: --upgrade --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple contourpy
- name: Smoke test
run: |
python -m pip list
python -c "from contourpy.util import build_config; from pprint import pprint; pprint(build_config())"
- name: Run tests
run: |
${PYTEST} tests/