Skip to content

Commit

Permalink
adjust python in actions (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
MxEh-TT committed Apr 9, 2024
1 parent 9854e34 commit 03b3542
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7.9' # latest binary release of v3.7
python-version: '3.12'
- name: Install poetry
run: pip3 install poetry
- name: Active Python version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
lint:
runs-on: ubuntu-22.04
env:
PY_VERSION: '3.9'
PY_VERSION: '3.12'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
test:
strategy:
matrix:
py_version: ["3.7", "3.9"]
py_version: ["3.12"]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -31,13 +31,13 @@ jobs:
- name: Install dependencies
run: poetry install --without workflow --no-root
- name: Execute Tests and create test coverage report
if: ${{ matrix.py_version == '3.9' }}
if: ${{ matrix.py_version == '3.12' }}
run: poetry run pytest tests --cov=testguide_report_generator --cov-report=xml:coverage.xml
- name: Execute Test
if: ${{ matrix.py_version != '3.9' }}
if: ${{ matrix.py_version != '3.12' }}
run: poetry run pytest tests
- name: Upload test coverage report
if: ${{ matrix.py_version == '3.9' }}
if: ${{ matrix.py_version == '3.12' }}
uses: actions/upload-artifact@v3
with:
name: test-coverage-report
Expand Down

0 comments on commit 03b3542

Please sign in to comment.