-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 901 Bytes
/
check-format.yaml
File metadata and controls
34 lines (32 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Check Format
on:
push:
branches:
- master
- main
jobs:
run-unittests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
name: ${{ matrix.os }} python-${{ matrix.python-version }}
steps:
- name: Set up the repository
uses: actions/checkout@v4
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Set up Python ${{ matrix.python-version }}
run: |
uv venv --python ${{ matrix.python-version }}
echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
uv pip install -r pyproject.toml
uv pip install --group dev
- name: Check Format with ruff
run: |
ruff check .