Skip to content

Merge pull request #23 from astropy/dependabot/github_actions/dot-git… #67

Merge pull request #23 from astropy/dependabot/github_actions/dot-git…

Merge pull request #23 from astropy/dependabot/github_actions/dot-git… #67

Workflow file for this run

name: Run unit tests
on:
pull_request:
push:
branches: [ main ]
tags:
- '*'
workflow_dispatch:
schedule:
# Run every Thursday at 03:53 UTC
- cron: 53 3 * * 4
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python-version: '3.10'
toxenv: py310-test-pytestoldest
- os: macos-12
python-version: '3.10'
toxenv: py310-test-pytest70
- os: windows-latest
python-version: '3.10'
toxenv: py310-test-pytest71
- os: windows-latest
python-version: '3.11'
toxenv: py311-test-pytest72
- os: macos-12
python-version: '3.11'
toxenv: py311-test-pytest73
- os: ubuntu-latest
python-version: '3.11'
toxenv: py311-test-pytest74
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytest80
- os: macos-latest
python-version: '3.12'
toxenv: py312-test-pytest80
- os: windows-latest
python-version: '3.12'
toxenv: py312-test-pytest80
- os: macos-latest
python-version: '3.11'
toxenv: py311-test-pytestdev
- os: windows-latest
python-version: '3.12'
toxenv: py312-test-pytestdev
- os: ubuntu-latest
python-version: '3.13-dev'
toxenv: py313-test-pytestdev
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox
run: python -m pip install tox
- name: Run Tox
run: tox ${{ matrix.toxargs }} -v -e ${{ matrix.toxenv }}