Skip to content

fix: pipeline example code works now #91

fix: pipeline example code works now

fix: pipeline example code works now #91

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Build & Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python_version: [3.13.0]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python ${{ matrix.python_version }}
run: uv python install ${{ matrix.python_version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
uv sync --all-extras --dev
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
uv run pytest tests/ \
--html=test-results-${{ matrix.python_version }}.html \
--self-contained-html \
--maxfail=2 \
--tb=short
- name: Upload pytest test results
uses: actions/upload-artifact@v1
with:
name: test-results-${{ matrix.python_version }}
path: test-results-${{ matrix.python_version }}.html
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}