forked from xapi-project/xen-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from xenserver-next/coveralls-finish-parallel-…
…upload Coveralls: finish parallel upload
- Loading branch information
Showing
6 changed files
with
58 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ jobs: | |
- name: Install common dependencies for Python ${{matrix.python-version}} | ||
run: pip install future mock pytest-coverage pytest-mock | ||
|
||
- name: Run Pytest for python 2 and get code coverage for Codecov | ||
- name: Run Pytest for python 2 and get code coverage | ||
if: ${{ matrix.python-version == '2.7' }} | ||
run: > | ||
pytest | ||
|
@@ -68,7 +68,7 @@ jobs: | |
env: | ||
PYTHONDEVMODE: yes | ||
|
||
- name: Run Pytest for python 3 and get code coverage for Codecov | ||
- name: Run Pytest for python 3 and get code coverage | ||
if: ${{ matrix.python-version != '2.7' }} | ||
run: > | ||
pytest | ||
|
@@ -80,16 +80,13 @@ jobs: | |
env: | ||
PYTHONDEVMODE: yes | ||
|
||
- name: Upload Python ${{matrix.python-version}} coverage report to Codecov | ||
uses: codecov/codecov-action@v3 | ||
- name: Upload coverage report to Coveralls | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
directory: .git | ||
files: coverage${{matrix.python-version}}.xml | ||
env_vars: OS,PYTHON | ||
fail_ci_if_error: false | ||
flags: python${{matrix.python-version}} | ||
name: coverage${{matrix.python-version}} | ||
verbose: true | ||
format: cobertura | ||
files: .git/coverage${{matrix.python-version}}.xml | ||
flag-name: python${{matrix.python-version}} | ||
parallel: true | ||
|
||
- uses: dciborow/[email protected] | ||
if: ${{ matrix.python-version != '2.7' }} | ||
|
@@ -114,6 +111,18 @@ jobs: | |
github_token: ${{ secrets.github_token }} | ||
continue-on-error: true | ||
|
||
# For coverage of 2.7 and 3.11 we upload to Coveralls in parallel mode. | ||
# To view the Coveralls results of the PR, click on the "Details" link to the right | ||
# of the Coveralls Logo in the Checks section of the PR. | ||
finish-parallel-coveralls-upload: | ||
needs: python-test # run after the python-test has completed uploading coverages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Finish the parallel coverage upload to Coveralls | ||
uses: coverallsapp/github-action@v1 | ||
with: | ||
parallel-finished: true | ||
|
||
deprecation-test: | ||
name: Deprecation tests | ||
runs-on: ubuntu-22.04 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters