Skip to content

Commit

Permalink
Fix Python version setup in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mushtary Alam authored and Mushtary Alam committed Jan 8, 2025
1 parent 91087a8 commit 55207a9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-latest # Or try ubuntu-22.04 if necessary

steps:
- name: Checkout code
Expand All @@ -19,7 +19,15 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10
python-version: '3.10.x' # Specific version

- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install -r requirements.txt
Expand All @@ -28,4 +36,3 @@ jobs:
env:
PYTHONPATH: ${{ github.workspace }}
run: python -m unittest discover -s solutions/tests

0 comments on commit 55207a9

Please sign in to comment.