Skip to content

Commit a97f7e0

Browse files
committed
Summary: Update github action to correct for deprecated runner version.
1 parent dac974e commit a97f7e0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/python-app.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,27 @@ on:
1111

1212
jobs:
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

0 commit comments

Comments
 (0)