Skip to content

Commit

Permalink
Merge pull request #79 from dhomeier/workflow-deps
Browse files Browse the repository at this point in the history
Structure CI Workflows
  • Loading branch information
dhomeier authored Jan 10, 2023
2 parents 63d9e0c + 8f041dc commit c734d71
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI Workflows
name: CI Tests

on:
push:
Expand All @@ -9,27 +9,35 @@ on:
pull_request:

jobs:
initial_checks:
# Mandatory checks before CI tests
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
coverage: false
envs: |
# Code style
- linux: codestyle
tests:
needs: initial_checks
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
coverage: codecov
libraries: |
apt:
- libxkbcommon-x11-0
- libgfortran5
- libhdf5-dev
brew:
- enchant
envs: |
# Code style
- linux: codestyle
coverage: false
# Standard tests
- linux: py37-test
- linux: py38-test
- linux: py39-test
- linux: py310-test-dev
- linux: py311-test-dev
- macos: py37-test
- windows: py38-test
Expand All @@ -38,6 +46,7 @@ jobs:
PLAT: arm64
publish:
needs: tests
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
with:
test_extras: test
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{36,37,38,39,310}-{test,docs}{,-dev}
envlist = py{37,38,39,310,311}-{test,docs,codestyle}-{dev}
requires = pip >= 18.0
setuptools >= 30.3.0

Expand All @@ -11,6 +11,7 @@ changedir =
deps =
dev: git+https://github.com/astropy/astropy
dev: git+https://github.com/astropy/specutils
dev: git+https://github.com/astropy/regions
extras =
test: test
docs: docs
Expand Down

0 comments on commit c734d71

Please sign in to comment.