Bump ruff from 0.4.4 to 0.4.5 #795
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: Build Python Wheels | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 6 * * *" # Daily 6AM UTC build | |
jobs: | |
wheel: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install native dependencies (Ubuntu) | |
run: sudo apt-get update && sudo apt-get install -y libgpgme-dev libtdb-dev libssl-dev pkg-config libgpg-error-dev | |
if: "matrix.os == 'ubuntu-latest'" | |
- name: set up rust | |
if: matrix.os != 'ubuntu' | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Install native dependencies (MacOS) | |
run: brew install swig gpgme | |
if: "matrix.os == 'macos-latest'" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel cibuildwheel | |
- name: Install gpg on supported platforms | |
run: pip install -U gpg | |
if: "matrix.os != 'windows-latest'" | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
if: "matrix.os == 'ubuntu-latest'" | |
- name: Build wheels | |
run: python -m cibuildwheel --output-dir wheelhouse | |
- name: Upload wheels | |
uses: actions/upload-artifact@v2 | |
with: | |
path: ./wheelhouse/*.whl | |
publish: | |
runs-on: ubuntu-latest | |
needs: wheel | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
permissions: | |
id-token: write | |
environment: | |
name: pypi | |
url: https://pypi.org/p/silver-platter | |
steps: | |
- uses: actions/setup-python@v5 | |
- name: Download wheels | |
uses: actions/download-artifact@v2 | |
with: | |
name: artifact | |
path: dist | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |