Skip to content

Commit 0b6bf7c

Browse files
committed
solved test.yml problem
1 parent 67aad2e commit 0b6bf7c

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
name: Run Tests
22

3-
on: push
3+
on: [push, pull_request]
44

55
jobs:
66
test:
77
runs-on: ubuntu-latest
8+
89
steps:
9-
- uses: actions/checkout@v3
10-
- name: Install dependencies
11-
run: pip install -r requirements.txt
12-
- name: Run tests
13-
run: pytest
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.x'
17+
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install pytest
1422
15-
23+
- name: Run tests
24+
run: pytest
25+

0 commit comments

Comments
 (0)