Merge pull request #111 from Carifio24/bump-python-pin #274
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Tests | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
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: | |
display: true | |
coverage: codecov | |
libraries: | | |
apt: | |
- '^libxcb.*-dev' | |
- libxkbcommon-x11-0 | |
- libegl1-mesa | |
- libhdf5-dev | |
envs: | | |
# Standard tests | |
- linux: py310-test | |
- linux: py311-test | |
- linux: py312-test | |
- linux: py313-test | |
# - linux: py313-test-devdeps | |
- linux: py312-glue116-test | |
- linux: py312-glue117-test | |
- linux: py312-glue118-test | |
- linux: py312-glue119-test | |
- linux: py312-glue120-test | |
- macos: py310-test | |
- macos: py311-test | |
- macos: py312-test | |
- macos: py313-test | |
# - macos: py313-test-devdeps | |
- macos: py312-glue116-test | |
- macos: py312-glue117-test | |
- macos: py312-glue118-test | |
- macos: py312-glue119-test | |
- macos: py312-glue120-test | |
- windows: py310-test | |
- windows: py311-test | |
- windows: py312-test | |
- windows: py313-test | |
# - windows: py313-test-devdeps | |
- windows: py312-glue116-test | |
- windows: py312-glue117-test | |
- windows: py312-glue118-test | |
- windows: py312-glue119-test | |
- windows: py312-glue120-test | |
pages: | |
needs: initial_checks | |
if: github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: docs | |
publish: | |
needs: tests | |
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1 | |
with: | |
libraries: '^libxcb.*-dev libxkbcommon-x11-dev libgl1-mesa-glx xvfb' | |
test_extras: 'test,qt,jupyter' | |
test_command: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & sleep 3; DISPLAY=:99.0 pytest --pyargs glue_plotly | |
secrets: | |
pypi_token: ${{ secrets.pypi_token }} |