Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[pre-commit.ci] pre-commit autoupdate #68

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #68

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
jobs:
tox:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Python 3.10 Schema validation tests
python-version: '3.10'
os: ubuntu-latest
toxenv: py310
- name: Python 3.9 Schema validation tests
python-version: 3.9
os: ubuntu-latest
toxenv: py39
- name: Python 3.8 Schema validation tests
python-version: 3.8
os: ubuntu-latest
toxenv: py38
- name: Twine check
python-version: 3.9
os: ubuntu-latest
toxenv: twine
- name: Code style checks
python-version: 3.9
os: ubuntu-latest
toxenv: codestyle
- name: macOS
python-version: 3.9
os: macos-latest
toxenv: py39
- name: Windows
python-version: 3.9
os: windows-latest
toxenv: py39
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Run tox
run: tox -e ${{ matrix.toxenv }}
full-dev:
name: Run schemas and dev extensions
runs-on: ubuntu-latest
steps:
- name: Checkout asdf-unit-schemas
uses: actions/checkout@v2
with:
fetch-depth: 0
path: asdf-unit-schemas
- name: Checkout astropy dev
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: astropy/astropy
ref: main
path: astropy
- name: Checkout asdf-astropy dev
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: astropy/asdf-astropy
ref: main
path: asdf-astropy
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install asdf-unit-schemas
run: cd asdf-unit-schemas && pip install .
- name: Install astropy
run: cd astropy && pip install -e .[all,test]
- name: Install asdf-astropy
run: cd asdf-astropy && pip install -e .[test]
- name: Pip Freeze
run: pip freeze
- name: Run asdf-unit-schemas development tests
run: cd asdf-unit-schemas && pytest
- name: Run asdf-astropy development tests
run: cd asdf-astropy && pytest
- name: Run astropy development tests
run: cd astropy && pytest astropy/io/misc/asdf