Skip to content

Update ci_tests.yml #136

Update ci_tests.yml

Update ci_tests.yml #136

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI Tests
on:
push:
branches:
- main
tags:
- '*'
pull_request:
jobs:
tests:
name: ${{ matrix.prefix }} ${{ matrix.os }}, ${{ matrix.tox_env }}
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
matrix:
include:
- os: ubuntu-latest
python: '3.12'
tox_env: 'py312-test-alldeps'
prefix: 'py312-test-alldeps'
- os: ubuntu-latest
python: '3.12'
tox_env: 'py312-test-astropy61'
prefix: 'py312-test-astropy61'
- os: ubuntu-latest
python: '3.12'
tox_env: 'py312-test-numpy122'
prefix: 'py312-test-numpy122'
- os: ubuntu-latest
python: '3.12'
tox_env: 'build_docs'
prefix: 'build_docs'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install Pandoc for build_docs
if: matrix.tox_env == 'build_docs'
run: sudo apt-get install -y pandoc
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install distutils
python -m pip install tox setuptools
- name: Test with Tox
run: |
export PY_COLORS=1
tox -e ${{ matrix.tox_env }}
env:
PY_COLORS: '1'