Skip to content

RegRank v0.2.29

RegRank v0.2.29 #28

Workflow file for this run

name: Release
on:
release:
types:
- created
permissions:
contents: read
jobs:
release-job:
name: Build and publish on PyPI (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
- name: Set up Python
uses: actions/setup-python@v5.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python - -y
- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Update Poetry configuration
run: poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install --sync --no-interaction
- name: Build package
run: poetry build
- name: Check sdist install and imports
run: |
mkdir -p test-sdist
cd test-sdist
python -m venv venv-sdist
venv-sdist/bin/python -m pip install ../dist/regrank-*.tar.gz
venv-sdist/bin/python -c "import regrank"
- name: Check wheel install and imports
run: |
mkdir -p test-wheel
cd test-wheel
python -m venv venv-wheel
venv-wheel/bin/python -m pip install ../dist/regrank-*.whl
venv-wheel/bin/python -c "import regrank"
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@v1.9.0