Skip to content

Commit c76c7e8

Browse files
committed
ci: fix stuff
1 parent 704a4dc commit c76c7e8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: Simple CI
33
# Triggers
44
on:
55
push:
6+
branches: [ main ]
67
pull_request:
8+
branches: [ main ]
79

810
# Jobs
911
# with one CI pipeline multiple environment configurations can be validated
@@ -18,7 +20,9 @@ jobs:
1820
with:
1921
python-version: "3.11"
2022
- name: Install dependencies
21-
run: pip install -r requirements.txt
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install ruff
2226
- name: Run lint
2327
run: ruff check .
2428

@@ -36,6 +40,8 @@ jobs:
3640
with:
3741
python-version: ${{ matrix.python-version }}
3842
- name: Install dependencies
39-
run: pip install -r requirements.txt
43+
run: |
44+
python -m pip install --upgrade pip
45+
pip install -r requirements.txt
4046
- name: Run tests
4147
run: pytest

0 commit comments

Comments
 (0)