Skip to content

Commit a78e89a

Browse files
committed
CodeOptiX Open Source
1 parent 7892170 commit a78e89a

File tree

2 files changed

+44
-7
lines changed

2 files changed

+44
-7
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,32 @@ jobs:
2828
version: "latest"
2929

3030
- name: Install dependencies
31-
run: uv sync --dev
31+
run: |
32+
uv venv
33+
if [ "$RUNNER_OS" == "Windows" ]; then
34+
.venv/Scripts/activate
35+
else
36+
source .venv/bin/activate
37+
fi
38+
uv pip install -e ".[dev]"
3239
3340
- name: Run ruff linter
34-
run: uv run ruff check src/
41+
run: |
42+
if [ "$RUNNER_OS" == "Windows" ]; then
43+
.venv/Scripts/activate
44+
else
45+
source .venv/bin/activate
46+
fi
47+
ruff check src/
3548
3649
- name: Run ruff formatter
37-
run: uv run ruff format --check src/
50+
run: |
51+
if [ "$RUNNER_OS" == "Windows" ]; then
52+
.venv/Scripts/activate
53+
else
54+
source .venv/bin/activate
55+
fi
56+
ruff format --check src/
3857
3958
test:
4059
name: Test (${{ matrix.os }} / Python ${{ matrix.python-version }})
@@ -59,10 +78,23 @@ jobs:
5978
version: "latest"
6079

6180
- name: Install dependencies
62-
run: uv sync --dev
81+
run: |
82+
uv venv
83+
if [ "$RUNNER_OS" == "Windows" ]; then
84+
.venv/Scripts/activate
85+
else
86+
source .venv/bin/activate
87+
fi
88+
uv pip install -e ".[dev]"
6389
6490
- name: Run tests
65-
run: uv run pytest tests/ -v --cov=src/codeoptix --cov-report=xml --cov-report=term
91+
run: |
92+
if [ "$RUNNER_OS" == "Windows" ]; then
93+
.venv/Scripts/activate
94+
else
95+
source .venv/bin/activate
96+
fi
97+
pytest tests/ -v --cov=src/codeoptix --cov-report=xml --cov-report=term
6698
6799
- name: Upload coverage
68100
uses: codecov/codecov-action@v4

.github/workflows/docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ jobs:
4040
version: "latest"
4141

4242
- name: Install dependencies
43-
run: uv sync --extra docs
43+
run: |
44+
uv venv
45+
source .venv/bin/activate
46+
uv pip install -e ".[docs]"
4447
4548
- name: Build documentation
46-
run: uv run mkdocs build
49+
run: |
50+
source .venv/bin/activate
51+
mkdocs build
4752
4853
- name: Deploy to GitHub Pages
4954
uses: peaceiris/actions-gh-pages@v4

0 commit comments

Comments
 (0)