Skip to content

Commit 22135be

Browse files
committed
Fix: Ensure pytest is installed for test runner
1 parent 79f6467 commit 22135be

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
name: Test Solution
2-
31
on: [pull_request, push]
42

53
jobs:
6-
test:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- name: Checkout code
10-
uses: actions/checkout@v3
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout code
8+
uses: actions/checkout@v3
119

12-
- name: Set up Python
13-
uses: actions/setup-python@v3
14-
with:
15-
python-version: '3.x'
10+
- name: Set up Python
11+
uses: actions/setup-python@v3
12+
with:
13+
python-version: '3.x'
1614

17-
- name: Install dependencies
18-
# Assuming you have a requirements.txt file
19-
run: pip install -r requirements.txt
15+
- name: Install dependencies and testing tools
16+
# Installing app dependencies (from requirements.txt) and the pytest framework
17+
run: |
18+
pip install -r requirements.txt
19+
pip install pytest
2020
21-
- name: Run tests
22-
# This command runs pytest if a 'tests' directory exists, which is standard.
23-
run: pytest
21+
- name: Run tests
22+
# This command runs pytest, which should now be installed.
23+
run: pytest
2424

2525

0 commit comments

Comments
 (0)