Skip to content

Commit

Permalink
Refactored GitHub Actions configuration to use OpenAstronomy workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Apr 23, 2024
1 parent cbdec83 commit e770afb
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 140 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
pull_request:
workflow_dispatch:

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

jobs:

tests:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
envs: |
- windows: py39-test-numpy122
- linux: py310-test-numpy124
- macos: py311-test-astropy53
- linux: py312-test
- linux: codestyle
coverage: 'codecov'

publish:
needs: tests
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1
with:
test_extras: test
test_command: pytest -p no:warnings --pyargs astroscrappy
targets: |
- cp*-manylinux_x86_64
- cp*-manylinux_aarch64
- cp*-macosx_x86_64
- cp*-macosx_arm64
- cp*-win_amd64
secrets:
pypi_token: ${{ secrets.pypi_token }}
anaconda_token: ${{ secrets.anaconda_token }}
68 changes: 0 additions & 68 deletions .github/workflows/python-tests.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit e770afb

Please sign in to comment.