Skip to content

Commit

Permalink
Update github action to setup python (#22)
Browse files Browse the repository at this point in the history
Add the setup python step to configure the right python version for
running the tests.
  • Loading branch information
Jamstah authored Apr 24, 2024
1 parent f11dd24 commit f2ec771
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ jobs:
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- run: python -m pip install --upgrade pip
- run: python -m pip install flake8 pytest
- run: python -m pytest -v
Expand Down

0 comments on commit f2ec771

Please sign in to comment.