Skip to content

Switch to uv

Switch to uv #22

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint
# GitHub docs: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# uv docs: https://docs.astral.sh/uv/guides/integration/github/
name: Testing
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# uv supports python 3.8 and higher
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
# Install a specific version of uv.
version: "0.7.3"
python-version: ${{ matrix.python-version }}
- name: Lint with Ruff
run: |
uvx ruff check --output-format=github .
- name: Set up Python ${{ matrix.python-version }}
run: |
uv python install
- name: Install the project
run: |
uv sync --all-extras
- name: Test with sample.csv
run: |
uv run csv2ical sample.csv test.ics
diff sample.ics test.ics