mirror of https://github.com/eyhc1/rendercv.git
workflows: update test.yaml
This commit is contained in:
parent
0d99036ede
commit
695aeeb9e9
|
@ -3,10 +3,9 @@ name: Tests
|
||||||
# GitHub events that triggers the workflow:
|
# GitHub events that triggers the workflow:
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main", "dev", "v1"]
|
branches: ["main", "dev"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main", "dev", "v1"]
|
branches: ["main", "dev"]
|
||||||
workflow_call:
|
|
||||||
|
|
||||||
# The workflow:
|
# The workflow:
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -67,6 +66,8 @@ jobs:
|
||||||
path: .coverage.${{ matrix.python-version }}.${{ matrix.os }}
|
path: .coverage.${{ matrix.python-version }}.${{ matrix.os }}
|
||||||
|
|
||||||
report-coverage:
|
report-coverage:
|
||||||
|
# Run only if the workflow was triggered by a push event
|
||||||
|
if: github.event_name == 'push'
|
||||||
name: Generate the coverage report
|
name: Generate the coverage report
|
||||||
needs: [test]
|
needs: [test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -80,7 +81,7 @@ jobs:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
|
|
||||||
- name: Download coverage files
|
- name: Download coverage files
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: coverage
|
name: coverage
|
||||||
path: coverage
|
path: coverage
|
||||||
|
|
Loading…
Reference in New Issue