Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 11 additions & 26 deletions .github/workflows/release.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,35 +4,20 @@ on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
test:
name: Release
release:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: interscript/interscript
- name: Run bootstrap script
run: ruby bootstrap.rb
- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
- name: Use Python
uses: actions/setup-python@v5
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Compile maps
run: cd python; pip install build regex pytest twine; bash ./build.sh; pip install .
- name: PyTest
run: cd python; pytest
- name: Build package
run: cd python; python -m build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/dist/
permissions:
id-token: write
- run: pip install build pytest
- run: pip install -e .
- run: pytest tests/ -v
- run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
Loading