Skip to content

Commit

Permalink
Update to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Jan 6, 2024
1 parent 4aadaba commit 39746ee
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 93 deletions.
91 changes: 91 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: CI

on:
push:
branches:
- 'main'
- '*.*'
- '!*backport*'
tags:
- 'v*'
- '!*dev*'
- '!*pre*'
- '!*post*'
pull_request:
workflow_dispatch:
schedule:
# ┌───────── minute (0 - 59)
# │ ┌───────── hour (0 - 23)
# │ │ ┌───────── day of the month (1 - 31)
# │ │ │ ┌───────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT)
- cron: '0 7 * * *' # Every day at 07:00 UTC

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
core:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
submodules: false
coverage: codecov
libraries: |
apt:
- pandoc
- graphviz
envs: |
- linux: py312-sphinx7
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
submodules: false
coverage: codecov
libraries: |
brew:
- pandoc
- graphviz
choco:
- pandoc
- graphviz
apt:
- pandoc
- graphviz
envs: |
- linux: py311-sphinx6
- macos: py310-sphinx5
- windows: py39-sphinx5
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

docs:
needs: [test]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
default_python: '3.9'
submodules: false
pytest: false
envs: |
- linux: py312-docs
extras:
needs: [test]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
default_python: '3.9'
submodules: false
coverage: codecov
libraries: |
apt:
- pandoc
- graphviz
envs: |
- linux: py312-sphinxdev
- linux: py312-conda
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
89 changes: 0 additions & 89 deletions azure-pipelines.yml

This file was deleted.

7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[tox]
envlist =
py{39,310,311}{-sphinx5,-sphinx6,-sphinx7,-sphinxdev,-docs,-linkcheck}
isolated_build = true
py{39,310,311,312}{-sphinx5,-sphinx6,-sphinx7,-sphinx8,-sphinxdev,-docs,-linkcheck}

[testenv]
allowlist_externals =
Expand All @@ -17,8 +16,8 @@ commands =
sphinx5: pip install -U "sphinx>=5.0,<6.0"
sphinx6: pip install -U "sphinx>=6.0,<7.0"
sphinx7: pip install -U "sphinx>=7.0,<8.0"
# TODO: Figure this out on azure
# sphinxdev: pip install -U "git+https://repo.or.cz/docutils.git#egg=docutils&subdirectory=docutils"
sphinx8: pip install -U "sphinx>=8.0,<9.0"
sphinxdev: pip install -U "git+https://repo.or.cz/docutils.git#egg=docutils&subdirectory=docutils"
sphinxdev: pip install -U "git+https://github.com/sphinx-doc/sphinx"
pip freeze --all --no-input
pytest -vvv -r a --pyargs ablog
Expand Down

0 comments on commit 39746ee

Please sign in to comment.