Skip to content

Commit

Permalink
chore: update github actions script
Browse files Browse the repository at this point in the history
  • Loading branch information
zietzm committed Aug 27, 2024
1 parent 4e124ca commit 0fbfabc
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Test Python package
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

on: [push, pull_request]
name: Test and lint

jobs:
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: |
python -m pip install --upgrade pip
pip install .
- uses: actions/checkout@v4
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: source $HOME/.cargo/env
- run: uv venv
- run: uv python pin ${{ matrix.python-version }}
- run: uv pip install ruff pytest httpx
- run: uv run ruff check
- run: uv run pytest -v

0 comments on commit 0fbfabc

Please sign in to comment.