Skip to content

Commit

Permalink
Merge pull request #87 from astrofrog/ci-oa-workflows
Browse files Browse the repository at this point in the history
Refactored GitHub Actions configuration to use OpenAstronomy workflows
  • Loading branch information
saimn authored Apr 25, 2024
2 parents cbdec83 + 6808c31 commit fd6cff5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 85 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Run unit tests

on:
pull_request:
push:
branches: [ main ]
tags:
pull_request:
workflow_dispatch:

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

jobs:

tests:
name: ${{ matrix.name }} (${{ matrix.os }}, ${{ matrix.toxenv }})
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -66,3 +69,19 @@ jobs:
run: |
pip install codecov
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 }}
72 changes: 0 additions & 72 deletions .github/workflows/release.yml

This file was deleted.

10 changes: 0 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,5 @@ exclude_lines = [
]

[tool.cibuildwheel]
# Skip pypy on mac due to numpy/accelerate issues
skip = ["pp*", "*musllinux*"]
build-verbosity = 1
environment = { PIP_PREFER_BINARY=1 }
test-requires = "pytest scipy"
test-command = "pytest --pyargs astroscrappy"

[tool.cibuildwheel.linux]
archs = ["x86_64"]

[tool.cibuildwheel.windows]
archs = ["AMD64"]

0 comments on commit fd6cff5

Please sign in to comment.