Skip to content

Commit ebed150

Browse files
committed
CI Fix
1 parent ef62fb5 commit ebed150

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,17 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
uv venv
33-
if [ "$RUNNER_OS" == "Windows" ]; then
34-
.venv/Scripts/activate
35-
else
36-
source .venv/bin/activate
37-
fi
33+
source .venv/bin/activate
3834
uv pip install -e ".[dev]"
3935
4036
- name: Run ruff linter
4137
run: |
42-
if [ "$RUNNER_OS" == "Windows" ]; then
43-
.venv/Scripts/activate
44-
else
45-
source .venv/bin/activate
46-
fi
38+
source .venv/bin/activate
4739
ruff check src/
4840
4941
- name: Run ruff formatter
5042
run: |
51-
if [ "$RUNNER_OS" == "Windows" ]; then
52-
.venv/Scripts/activate
53-
else
54-
source .venv/bin/activate
55-
fi
43+
source .venv/bin/activate
5644
ruff format --check src/
5745
5846
test:
@@ -61,7 +49,7 @@ jobs:
6149
strategy:
6250
fail-fast: false
6351
matrix:
64-
os: [ubuntu-latest, macos-latest, windows-latest]
52+
os: [ubuntu-latest, macos-latest]
6553
python-version: ['3.12']
6654

6755
steps:
@@ -80,20 +68,12 @@ jobs:
8068
- name: Install dependencies
8169
run: |
8270
uv venv
83-
if [ "$RUNNER_OS" == "Windows" ]; then
84-
.venv/Scripts/activate
85-
else
86-
source .venv/bin/activate
87-
fi
71+
source .venv/bin/activate
8872
uv pip install -e ".[dev]"
8973
9074
- name: Run tests
9175
run: |
92-
if [ "$RUNNER_OS" == "Windows" ]; then
93-
.venv/Scripts/activate
94-
else
95-
source .venv/bin/activate
96-
fi
76+
source .venv/bin/activate
9777
pytest tests/ -v --cov=src/codeoptix --cov-report=xml --cov-report=term
9878
9979
- name: Upload coverage

0 commit comments

Comments
 (0)