File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 1- name : Test Solution
2-
31on : [pull_request, push]
42
53jobs :
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
You can’t perform that action at this time.
0 commit comments