Skip to content

Merge pull request #3623 from astropy/dependabot/github_actions/actio… #4540

Merge pull request #3623 from astropy/dependabot/github_actions/actio…

Merge pull request #3623 from astropy/dependabot/github_actions/actio… #4540

Workflow file for this run

# This test job is separated out into its own workflow to be able to obtain a separate badge for it
name: CI-devtest
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
schedule:
# run every Monday at 5am UTC
- cron: '0 5 * * 1'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- name: dev dependencies with all dependencies with coverage
os: ubuntu-latest
python: '3.13'
toxenv: py313-test-alldeps-devdeps-cov
toxargs: -v
- name: Python 3.14
os: ubuntu-latest
python: '3.14'
toxenv: py314-test
toxargs: -v
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python }}
- name: Install Python dependencies
run: python -m pip install --upgrade tox
- name: Run tests
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
- name: Upload coverage to codecov
if: contains(matrix.toxenv,'-cov')
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
file: ./coverage.xml