Initial commit
This commit is contained in:
38
.github/workflows/tests.yml
vendored
Normal file
38
.github/workflows/tests.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Run tests
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
|
||||
test:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.12"]
|
||||
env:
|
||||
PIP_ROOT_USER_ACTION: ignore
|
||||
UV_LINK_MODE: copy
|
||||
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install uv
|
||||
uv sync --locked
|
||||
|
||||
- name: Check format with ruff
|
||||
run: |
|
||||
uv run ruff format --check
|
||||
|
||||
- name: Check code linting with ruff
|
||||
run: |
|
||||
uv run ruff check
|
||||
Reference in New Issue
Block a user