Skip to content

Commit

Permalink
Fix coverage filename
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Sep 9, 2024
1 parent 37018ff commit d17d3c3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pytest-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest]
os: [macos-13]
# 3.8 and 3.9 are unsupported on the darwin runner
python-version: ["3.10", "3.11"]

Expand All @@ -34,26 +34,26 @@ jobs:
python -m pip install --requirement requirements.txt
python -m pip install psutil pytest pytest-cov pytest-schema
- if: matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10'
name: Install python libraries for python 3.8 and 3.9
- if: matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10'
name: Install python libraries for python 3.8, 3.9, and 3.10
run: python -m pip install typing_extensions

- name: Run pytest on tests
run: |
export DYLD_LIBRARY_PATH=/opt/senzing/g2/lib:/opt/senzing/g2/lib/macos
export DYLD_LIBRARY_PATH=/opt/senzing/er/lib:/opt/senzing/er/lib/macos
pytest tests/ --verbose --capture=no --cov=src
- name: Rename coverage file
env:
COVERAGE_FILE: ".coverage.${{ matrix.python-version }}"
COVERAGE_FILE: "coverage.${{ matrix.python-version }}"
run: |
mv .coverage "$COVERAGE_FILE"
- name: Store coverage file
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: .coverage.${{ matrix.python-version }}
path: coverage.${{ matrix.python-version }}

coverage:
name: Coverage
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytest-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
python -m pip install --requirement requirements.txt
python -m pip install psutil pytest pytest-cov pytest-schema
- if: matrix.python-version == '3.8' || matrix.python-version == '3.9'
name: Install python libraries for python 3.8 and 3.9
- if: matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10'
name: Install python libraries for python 3.8, 3.9, and 3.10
run: python -m pip install typing_extensions

- name: Run pytest on tests
Expand All @@ -53,15 +53,15 @@ jobs:
- name: Rename coverage file
env:
COVERAGE_FILE: ".coverage.${{ matrix.python-version }}"
COVERAGE_FILE: "coverage.${{ matrix.python-version }}"
run: |
mv .coverage "$COVERAGE_FILE"
- name: Store coverage file
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: .coverage.${{ matrix.python-version }}
path: coverage.${{ matrix.python-version }}

coverage:
name: Coverage
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pytest-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ jobs:
python -m pip install psutil pytest pytest-cov pytest-schema
- if: matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10'
name: Install python libraries for python 3.8 and 3.9
name: Install python libraries for python 3.8, 3.9, and 3.10
run: python -m pip install typing_extensions

- name: Run pytest on tests
run: pytest tests/ --verbose --capture=no --cov=src

- name: Rename coverage file
env:
COVERAGE_FILE: ".coverage.${{ matrix.python-version }}"
COVERAGE_FILE: "coverage.${{ matrix.python-version }}"
run: |
Rename-Item -Path.coverage -NewName "$env:COVERAGE_FILE"
- name: Store coverage file
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: .coverage.${{ matrix.python-version }}
path: coverage.${{ matrix.python-version }}

coverage:
name: Coverage
Expand Down
2 changes: 1 addition & 1 deletion development-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bandit==1.7.9
black==24.8.0
build==1.2.1
build==1.2.2
coverage==7.6.1
flake8==7.1.1
fpvs==0.3.0
Expand Down

0 comments on commit d17d3c3

Please sign in to comment.