Skip to content

fix[cartesian] Remove the vloop_sections for a more unqiue id(node) #7123

fix[cartesian] Remove the vloop_sections for a more unqiue id(node)

fix[cartesian] Remove the vloop_sections for a more unqiue id(node) #7123

Workflow file for this run

name: Deploy Python Distribution
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]
workflow_dispatch:
jobs:
# First job to read Python versions from .python-versions file
get-python-versions:
runs-on: ubuntu-latest
outputs:
python-versions: ${{ steps.get-versions.outputs.python-versions }}
steps:
- uses: actions/checkout@v4
- id: get-versions
uses: ./.github/actions/get-python-versions
with:
which: 'default'
build:
name: Build Python distribution
needs: [get-python-versions]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Use a deep clone to get the correct version from tags
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ fromJSON(needs.get-python-versions.outputs.python-versions) }}
- name: Install pypa/build
run: |
python -m pip install build --user
- name: Build a wheel and a source tarball
run: |
python -m build --sdist --wheel --outdir dist/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: gt4py-dist
path: ./dist/**
publish-pypi:
name: Publish Python distribution to pypi.org
runs-on: ubuntu-latest
needs: build
if: ${{ github.event_name == 'workflow_dispatch' }} # the action was triggered manually
environment:
name: pypi
url: https://pypi.org/project/gt4py
permissions:
id-token: write
steps:
- name: Download wheel
uses: actions/download-artifact@v4
with:
name: gt4py-dist
path: dist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
publish-test-pypi:
name: Publish Python distribution to test.pypi.org
runs-on: ubuntu-latest
needs: build
if: ${{ github.event_name == 'release' }} # triggered by releasing on github, test first before manually triggering the deployment to PyPI (see release documentation)
environment:
name: testpypi
url: https://test.pypi.org/project/gt4py/
permissions:
id-token: write
steps:
- name: Download wheel
uses: actions/download-artifact@v4
with:
name: gt4py-dist
path: dist
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/