Skip to content

Bump dependencies

Bump dependencies #2

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*'
jobs:
package:
name: Build & Verify Package
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: 3.x
cache: pip
cache-dependency-path: ${{ github.workspace }}/pyproject.toml
- name: Install Build Tools
run: |
python -m pip install -U pip setuptools wheel
python -m pip install .[dev]
- name: Build Package
run: tox -e package
- name: Upload Package
uses: actions/[email protected]
with:
name: package
path: ./dist
if-no-files-found: error
release:
name: Create Release
needs: package
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write # required for trusted publishing
steps:
- name: Set Build Variables
id: build-vars
run: echo "version=${GITHUB_REF_NAME#v}" | tee -a ${GITHUB_OUTPUT}
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.x"
- name: Get Packages
uses: actions/[email protected]
with:
name: package
path: dist
- name: Create Release
uses: ncipollo/[email protected]
with:
name: release-${{ steps.build-vars.outputs.version }}
draft: true
artifacts: dist/*
artifactErrorsFailBuild: true
- name: Publish release to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/