Skip to content

Commit

Permalink
DELETEME: testing that test and build jobs run correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
javiber committed Mar 20, 2024
1 parent d266d53 commit d8f11b0
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: publish

on:
release:
types: [published] # Runs both for releases and prereleases
# FIXME: testing the GA runs correctly
on: [push]
# release:
# types: [published] # Runs both for releases and prereleases

jobs:
test:
Expand Down Expand Up @@ -161,30 +162,31 @@ jobs:
- name: Test installation
run: python${{ matrix.python-version }} tools/check_install.py

publish:
needs: [test, test-install, test-macos-arm-install]
runs-on: ubuntu-latest
environment: pypi
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install poetry
run: pip install poetry

- name: Download builds for all Python versions and platforms
uses: actions/download-artifact@v3
with:
# Skipping `name` key to download all artifacts from this workflow
# Artifacts are downloaded to dist/<artifact-name>
path: dist

- name: Move wheels and sources to dist/
run: |
mv dist/*/*.whl dist/
mv -n dist/*/*.tar.gz dist/
- name: Publish to PyPI
run: poetry publish --no-interaction --skip-existing
# FIXME: testing the GA runs correctly
# publish:
# needs: [test, test-install, test-macos-arm-install]
# runs-on: ubuntu-latest
# environment: pypi
# env:
# POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
# steps:
# - name: Checkout
# uses: actions/checkout@v3

# - name: Install poetry
# run: pip install poetry

# - name: Download builds for all Python versions and platforms
# uses: actions/download-artifact@v3
# with:
# # Skipping `name` key to download all artifacts from this workflow
# # Artifacts are downloaded to dist/<artifact-name>
# path: dist

# - name: Move wheels and sources to dist/
# run: |
# mv dist/*/*.whl dist/
# mv -n dist/*/*.tar.gz dist/

# - name: Publish to PyPI
# run: poetry publish --no-interaction --skip-existing

0 comments on commit d8f11b0

Please sign in to comment.