Skip to content

feat/metadata_test

feat/metadata_test #63

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
test:
name: Test - ${{ matrix.python-version }} - ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
python-version: ["3.11", "3.12"]
os: [ubuntu-latest, macOs-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Check if cache used
if: steps.setup-uv.outputs.cache-hit == 'true'
run: echo "Cache was restored"
- name: Set up python env
run: |
uv venv --python ${{ matrix.python-version }}
uv sync --dev
- name: Run pre-commit
continue-on-error: true
run: make pre-commit
- name: Run tests
# For example, using `pytest`
run: make test