Skip to content

chore(deps): update astral-sh/setup-uv action to v7 #30

chore(deps): update astral-sh/setup-uv action to v7

chore(deps): update astral-sh/setup-uv action to v7 #30

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras
- name: Setup Node.js environment
uses: actions/[email protected]
# with:
# # Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.
# cache: # optional
- name: Install basedpyright globally
run: npm install -g basedpyright
env:
NPM_CONFIG_PREFIX: ~/.npm-global
- name: Add npm global bin to PATH
run: echo "$HOME/.npm-global/bin" >> $GITHUB_PATH
# - name: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
uv run pytest tests