Skip to content

feat: run unit tests on multiple python versions (#56) #18

feat: run unit tests on multiple python versions (#56)

feat: run unit tests on multiple python versions (#56) #18

Workflow file for this run

name: Semantic Release
on:
push:
release:
types:
- published
jobs:
build_wheel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: -1
fetch-tags: true
- uses: actions/setup-python@v5
with:
python-version: 3.12
cache: pip
- run: pip wheel .
- uses: actions/upload-artifact@v4
if: github.repository_owner == 'DelfinaCare'
with:
name: wheel
path: ./*.whl
# upload_wheel_test:
# needs: [build_wheel]
# runs-on: ubuntu-latest
# if: github.repository_owner == 'DelfinaCare'
# environment:
# name: pypi-test
# url: https://pypi.org/p/rls
# permissions:
# id-token: write
# steps:
# - uses: actions/download-artifact@v4
# with:
# name: wheel
# path: dist/
# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/
upload_wheel:
needs: [build_wheel]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published' && github.repository_owner == 'DelfinaCare'
environment:
name: pypi
url: https://pypi.org/p/rls
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: wheel
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1