Skip to content

Commit 6f09de0

Browse files
committed
docs: update .github/workflows/ci.yml via Apex Optimizer
1 parent 1bfdeaa commit 6f09de0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
# This workflow will do a combination of testing, build, and deployment tasks
4+
# For more information see: https://docs.github.com/actions/automating-builds-and-tests/about-continuous-integration
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build_and_test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python 3.10
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.10"
23+
cache: "uv"
24+
cache-dependency-path: "**/pyproject.toml"
25+
26+
- name: Install dependencies with uv
27+
run: "uv pip install --system --quiet --no-cache-dir -e .[dev]"
28+
29+
- name: Lint with Ruff
30+
run: "uv run --quiet --no-cache-dir ruff check ."
31+
32+
- name: Format with Ruff
33+
run: "uv run --quiet --no-cache-dir ruff format ."
34+
35+
- name: Test with Pytest
36+
run: "uv run --quiet --no-cache-dir pytest"

0 commit comments

Comments
 (0)