Skip to content

Bump actions/upload-artifact from 4 to 7 #14

Bump actions/upload-artifact from 4 to 7

Bump actions/upload-artifact from 4 to 7 #14

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install ".[dev]"
- name: Ruff
run: ruff check src tests
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install ".[dev]"
- name: Run tests
run: pytest -q --cov=pawa_ai --cov-report=term-missing
env:
PAWA_AI_API_KEY: test-key-for-ci
- name: Upload coverage (3.12 only)
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v7
with:
name: coverage-report
path: .coverage
build:
name: Build package
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tools
run: pip install build
- name: Build sdist and wheel
run: python -m build
- name: Upload dist artifacts
uses: actions/upload-artifact@v7
with:
name: dist
path: dist/