pyproject: Bump minimum Python version to 3.9 #160
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: Pipeline | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
- name: Setup xvfb | |
run: | | |
sudo apt-get install -y xvfb | |
Xvfb :1 -screen 0 1024x1024x16 & | |
- name: Install Dependencies | |
run: uv sync | |
- name: Run Tests | |
env: | |
DISPLAY: :1 | |
run: | | |
uv run ruff check | |
uv run pytest | |
- name: Build package | |
run: | | |
uv build | |
- name: Publish package | |
if: startsWith(github.event.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} |