Skip to content

Commit

Permalink
ci: tests: Fix python-version
Browse files Browse the repository at this point in the history
  • Loading branch information
pdxjohnny committed Dec 12, 2023
1 parent 3266ff9 commit c4ce110
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- "3.10"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version-version }}
python-version: ${{ matrix.python-version }}
- name: Get pip cache
id: pip-cache
run: |
Expand All @@ -30,7 +30,7 @@ jobs:
uses: actions/cache@v1
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dev dependencies
Expand All @@ -45,7 +45,7 @@ jobs:
id: generate-sbom
uses: pdxjohnny/sbom4python@github-action
with:
python-version: ${{ matrix.python-version-version }}
python-version: ${{ matrix.python-version }}
module-name: httptest
output-directory: sbom
- name: Create Pull Request
Expand Down Expand Up @@ -74,10 +74,10 @@ jobs:
- "3.12"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version-version }}
python-version: ${{ matrix.python-version }}
- name: Get pip cache
id: pip-cache
run: |
Expand All @@ -86,7 +86,7 @@ jobs:
uses: actions/cache@v1
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dev dependencies
Expand All @@ -95,16 +95,16 @@ jobs:
pip install -e .[dev]
python -m pip freeze
- name: Test without coverage
if: ${{ matrix.python-version-version != '3.10' }}
if: ${{ matrix.python-version != '3.10' }}
run: |
python -m unittest discover -v
- name: Coverage Test
if: ${{ matrix.python-version-version == '3.10' && matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest' }}
run: |
python -m coverage run -m unittest discover -v
python -m coverage report -m
- name: Upload coverage to codecov
if: ${{ matrix.python-version-version == '3.10' && matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
Expand Down

0 comments on commit c4ce110

Please sign in to comment.