Skip to content

Commit

Permalink
coverage job fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SpectraL519 committed Sep 4, 2024
1 parent 67f3a3a commit ad5fb44
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- '*'
paths:
- .github/workflows/examples.yaml
- src/**
- examples/**
- pyproject.toml
Expand All @@ -26,16 +27,13 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install build
run: python -m pip install build

- name: Build the library for ${{ matrix.python-version }}
run: |
python -m build
run: python -m build

- name: Install library
run: |
python -m pip install dist/pyconstclasses-*-py3-none-any.whl --force-reinstall
run: python -m pip install dist/pyconstclasses-*-py3-none-any.whl --force-reinstall

- name: Run the example programs
run: |
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- '*'
paths:
- .github/workflows/format.yaml
- src/**
- test/**
- examples/**
Expand All @@ -24,13 +25,10 @@ jobs:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install black isort
run: python -m pip install black isort

- name: Run format check
run: |
python -m black . --check
run: python -m black . --check

- name: Run import check
run: |
python -m isort . --check
run: python -m isort . --check
15 changes: 8 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- '*'
paths:
- .github/workflows/tests.yaml
- src/**
- test/**
- tox.ini
Expand All @@ -27,12 +28,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install tox tox-gh-actions
run: python -m pip install tox tox-gh-actions

- name: Run tox for ${{ matrix.python-version }}
run: |
python -m tox
run: python -m tox

- name: Upload coverage data
uses: actions/upload-artifact@v4
Expand All @@ -54,14 +53,16 @@ jobs:
python-version: 3.12

- name: Install dependencies
run: |
python -m pip install tox tox-gh-actions
run: python -m pip install tox tox-gh-actions

- name: Download coverage data
uses: actions/download-artifact@v4
with:
pattern: covdata-*
merge-multiple: true
merge: true

- name: Debug coverage files
run: find . -name ".coverage*"

- name: Combine coverage data
run: |
Expand Down

0 comments on commit ad5fb44

Please sign in to comment.