Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use PyPI upload workflow from OpenAstronomy #7912

Merged
merged 12 commits into from
Dec 5, 2023
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: build

on:
release:
types: [ released ]
pull_request:
workflow_dispatch:

zacharyburnett marked this conversation as resolved.
Show resolved Hide resolved
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
if: github.event_name == 'release'
name: check that `requirements-sdp.txt` is populated
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: grep -v '^ *#' requirements-sdp.txt
build:
needs: [ check ]
if: always() && (needs.check.result == 'success' || needs.check.result == 'skipped')
zacharyburnett marked this conversation as resolved.
Show resolved Hide resolved
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1
with:
upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }}
targets: |
# Linux wheels
- cp3*-manylinux_x86_64
# MacOS wheels
- cp3*-macosx_x86_64
# Until we have arm64 runners, we can't automatically test arm64 wheels
- cp3*-macosx_arm64
sdist: true
secrets:
pypi_token: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }}
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
- linux: check-style
- linux: check-security
- linux: check-dependencies
- linux: build-dist
zacharyburnett marked this conversation as resolved.
Show resolved Hide resolved
test:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
needs: [ crds ]
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/publish-to-pypi.yml

This file was deleted.

7 changes: 0 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,3 @@ extras = docs
commands =
sphinx-build -W docs docs/_build

[testenv:build-dist]
description = check build sdist/wheel and a strict twine check for metadata
skip_install = true
deps =
build
commands =
python -m build
Loading