Skip to content

Bump ruff from 0.15.11 to 0.15.12 #248

Bump ruff from 0.15.11 to 0.15.12

Bump ruff from 0.15.11 to 0.15.12 #248

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
env:
PYTHON_BUILD_VERSION: '3.14'
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Setup uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Install packages
run: uv sync --locked
- name: Check formatting
run: |
make check-format
- name: Check linting
run: |
make check-fix
- name: Run tests
run: make test
- name: Build package
run: uv build
- name: Upload artifacts
if: matrix.python-version == env.PYTHON_BUILD_VERSION
uses: actions/upload-artifact@v7
with:
name: python-package-distributions
path: dist/
publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
permissions:
id-token: write
contents: read
environment:
name: release
url: https://pypi.org/p/scraperwiki
steps:
- name: Download artifacts
uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0