Skip to content

fix(deps): update dependency numpy to v2 #23

fix(deps): update dependency numpy to v2

fix(deps): update dependency numpy to v2 #23

Workflow file for this run

# This will run every time a tag is created.
# It calls our tests workflow via a `workflow_call`, and if tests pass
# then it triggers our upload to PyPI for a new release.
name: Publish to PyPI
on:
push:
tags:
permissions:
contents: read
jobs:
# calls our general CI workflow (tests, build docs, etc.)
tests:
uses: ./.github/workflows/CI.yaml

Check failure on line 16 in .github/workflows/publish.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/publish.yaml" -> "./.github/workflows/CI.yaml" (source branch with sha:50aeeb5f745b2a797f40aca70f73695c71ebbb7b) : workflow is not reusable as it is missing a `on.workflow_call` trigger
build-package:
name: "Build & verify 🐻 Lours package"
needs: [tests] # require tests to pass before deploy runs
runs-on: ubuntu-latest
steps:
- name: "Checkout repository πŸ›Ž"
uses: actions/checkout@v4
- name: Install poetry
uses: abatilo/actions-poetry@v3
- name: "Build and inspect package πŸ“¦"
uses: hynek/build-and-inspect-python-package@v2
id: baipp
release-pypi:
runs-on: ubuntu-latest
needs: [build-package]
environment: release
permissions:
id-token: write # needed for PyPI upload
steps:
- name: "Download 🐻 Lours built package πŸ“¦"
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: "Unzip artifact"
run: |
tar xvf dist/*.tar.gz --strip-components=1
- name: "Publish 🐻 Lours package to PyPI πŸš€"
uses: pypa/gh-action-pypi-publish@release/v1
if: github.repository_owner == 'XXII-AI'