Skip to content

Commit c7c361e

Browse files
authored
Update ci.yml
1 parent bf2e81c commit c7c361e

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,31 @@ name: Run Tests
33
on:
44
push:
55
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
612

713
jobs:
814
test:
915
runs-on: ubuntu-latest
1016

1117
steps:
12-
- uses: actions/checkout@v3
18+
- name: Checkout repository
19+
uses: actions/checkout@v5
1320

14-
- name: Set up Python
15-
uses: actions/setup-python@v4
16-
with:
17-
python-version: '3.10'
21+
- name: Set up Python
22+
uses: actions/setup-python@v6
23+
with:
24+
python-version: '3.10'
25+
cache: pip
1826

19-
- name: Install dependencies
20-
run: pip install -r requirements.txt
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install -r requirements.txt
2131
22-
- name: Run tests
23-
run: pytest -v
32+
- name: Run Pytest
33+
run: python -m pytest -v

0 commit comments

Comments
 (0)