Skip to content

Release udiskie v2.5.6 #163

Release udiskie v2.5.6

Release udiskie v2.5.6 #163

Workflow file for this run

name: Python Package
on:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python:
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install build dependencies
run: |
sudo apt-get install -qy \
gettext \
libkeyutils-dev \
libgirepository1.0-dev
- run: pip install -U pip
- run: pip install setuptools wheel
- run: python setup.py sdist bdist_wheel
- run: pip install dist/*.whl keyutils
- run: pip install twine flake8
- run: twine check dist/*
- run: flake8
- run: python test/test_cache.py
- run: python test/test_match.py
- uses: actions/upload-artifact@v4
with: {name: dist, path: dist/}
if: matrix.python == '3.12'
deploy:
name: Upload release
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/v') && success()
environment:
name: pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4.1.8
with: {name: dist, path: dist/}
- uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/