File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313 build :
14-
1514 runs-on : ubuntu-latest
1615
1716 steps :
18- - uses : actions/checkout@v2
17+ - name : Checkout code
18+ uses : actions/checkout@v4 # Updated from v2
19+
1920 - name : Set up Python
20- uses : actions/setup-python@v2
21+ uses : actions/setup-python@v5 # Updated from v2
2122 with :
22- python-version : >3
23+ python-version : ' 3.11' # Use a specific version or '3.x'
24+
2325 - name : Install dependencies
2426 run : |
2527 python -m pip install --upgrade pip
2628 pip install pytest
2729 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+ # Ensure the config file exists for the tests
2831 cp ./src/counter/config.py.template ./src/counter/config.py
32+ # This solves your 'src' import issue from earlier!
2933 pip install -e .
34+
3035 - name : Test with pytest
3136 run : |
3237 pytest ./tests/test_package.py ./tests/test_pasta_api.py
You can’t perform that action at this time.
0 commit comments