Skip to content

Force Agg backend before patchworklib import to fix Windows CI tkinte… #6

Force Agg backend before patchworklib import to fix Windows CI tkinte…

Force Agg backend before patchworklib import to fix Windows CI tkinte… #6

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v*'
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
id-token: write # Required for trusted publishing
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build dependencies
run: python -m pip install --upgrade pip build
- name: Build sdist and wheel
run: python -m build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
publish-to-pypi:
name: Publish to PyPI
needs: [build]
runs-on: ubuntu-latest
if: always() && needs.build.result == 'success'
environment:
name: pypi
url: https://pypi.org/p/tpixel
permissions:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1