Merge pull request #60 from jhunkeler/use-codecov-token #181
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |