RegRank v0.2.30 #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
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/[email protected] |