Skip to content

Restructure as a Python package #4

Restructure as a Python package

Restructure as a Python package #4

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
- '*.*'
tags:
- 'v*'
pull_request:
workflow_dispatch:
jobs:
core:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
toxdeps: tox-pypi-filter
envs: |
- linux: py312
libraries:
apt:
- libboost-all-dev
coverage: 'codecov'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
tests:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
toxdeps: tox-pypi-filter
envs: |
- macos: py311
libraries:
brew:
- boost
# - windows: py310
# libraries:
# choco:
# - boost-msvc-14.3
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
docs:
needs: [tests]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
toxdeps: tox-pypi-filter
envs: |
- linux: build_docs-gallery
python-version: '3.12'
libraries:
apt:
- libboost-all-dev
publish:
# Build wheels when pushing to any branch except main
# publish.yml will only publish if tagged ^v.*
if: |
(
github.event_name != 'pull_request' && (
github.ref_name != 'main' ||
github.event_name == 'workflow_dispatch'
)
) || (
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Run publish')
)
needs: [tests]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@main
with:
test_extras: 'dev'
test_command: 'pytest -p no:warnings --doctest-rst --pyargs ebtelplusplus'
targets: |
- linux
- macos
- windows
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}