Skip to content

Commit

Permalink
change tests to pyenv action
Browse files Browse the repository at this point in the history
Signed-off-by: jakub-nt <[email protected]>
  • Loading branch information
jakub-nt committed Feb 20, 2025
1 parent 2ee6929 commit 8967794
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Set up Python ${{ matrix.python-version }} using pyenv
uses: gabrielfalcao/pyenv-action@v17
with:
python-version: ${{ matrix.python-version }}
default: "${{ matrix.python-version }}"
command: pip install -U pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest setuptools wheel
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
Expand All @@ -78,6 +78,9 @@ jobs:
- name: Test with pytest
run: |
pytest
- name: Check local Python version for sanity
run: |
python -V
- name: Install
run: |
python setup.py sdist bdist_wheel
Expand Down

0 comments on commit 8967794

Please sign in to comment.