Skip to content

Integrate imagehash to pytest #278

Integrate imagehash to pytest

Integrate imagehash to pytest #278

name: CI
permissions:
contents: read
on:
push:
branches:
- main
tags:
- 'v*'
- '!*dev*'
- '!*pre*'
- '!*post*'
pull_request:
# Allow manual runs through the web UI
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v2
with:
libraries: |
apt:
- ghostscript
- inkscape
envs: |
# Test oldest SPEC 0 configurations
- linux: py312-test-mpl39
- macos: py312-test-mpl39
- windows: py312-test-mpl39
# Test newest configurations
- linux: py314-test-mpl310
- macos: py314-test-mpl310
- windows: py314-test-mpl310
# Test intermediate SPEC 0 configurations on Linux
- linux: py313-test-mpl39
- linux: py313-test-mpl310
# Test non-SPEC 0 configurations
- linux: py314-test-mpldev-pytestdev
- linux: py313-test-mpl38-pytest84
- linux: py312-test-mpl38-pytest74
- linux: py310-test-mpl35-pytest62
# Test oldest supported Python configurations
- linux: py310-test-mpl35
- macos: py310-test-mpl35
- windows: py310-test-mpl35
coverage: 'codecov'
publish:
if: github.event_name != 'pull_request'
needs: [test]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v2
with:
test_command: pytest $GITHUB_WORKSPACE/tests; pytest --mpl $GITHUB_WORKSPACE/tests
secrets:
pypi_token: ${{ secrets.pypi_password }}