Skip to content

fix: dead-code detection no longer bypassed when flow output contract… #5

fix: dead-code detection no longer bypassed when flow output contract…

fix: dead-code detection no longer bypassed when flow output contract… #5

Workflow file for this run

name: Release to PyPI
on:
push:
tags:
- "v*"
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: go test ./...
python-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install pytest
- run: python -m pytest apple/tests/ -v
codegen-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run codegen
run: go run ./cmd/pineapple-codegen -output apple/generated -doc-dir doc/operators -operators-dir operators
- name: Check no diff
run: git diff --exit-code
build:
needs: [go-test, python-test, codegen-check]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install build
- run: python -m build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
publish:
needs: build
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1