-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (45 loc) · 1.51 KB
/
test_devdeps.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
name: test with development versions
on:
push:
branches:
- master
- '*.x'
tags:
- '*'
pull_request:
# We also want this workflow triggered if the label is added
# or present when PR is updated
types:
- synchronize
- labeled
schedule:
# Weekly Monday 7AM build
- cron: "0 7 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CODECOV: $(codecov)
jobs:
test_devdeps:
if: (github.repository == 'spacetelescope/stsci.stimage' && (github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'run devdeps tests')))
name: tests (Python ${{ matrix.python }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python: [ '3.13' ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependencies-path: pyproject.toml
- run: pip install "numpy>=0.0.0" --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --pre -U
- run: pip install -e ".[test]"
- run: pip freeze
- run: pytest -vvv -rs