-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use coveralls github action with parallel enabled (#1131)
* Use coveralls github action with parallel enabled instead of manual coveralls Coveralls is failing on recent runs so lets migrate to the current latest way to use it.
- Loading branch information
Showing
1 changed file
with
15 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,6 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install tox tox-gh-actions | ||
pip install coveralls | ||
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.6/protoc-21.6-linux-x86_64.zip | ||
unzip protoc-21.6-linux-x86_64.zip | ||
sudo cp bin/protoc /usr/bin/protoc && sudo chmod 777 /usr/bin/protoc | ||
|
@@ -47,10 +46,11 @@ jobs: | |
sudo apt-get install -y libusb-1.0-0-dev libprotobuf-dev swig | ||
- name: Test with tox | ||
run: tox | ||
- name: Publish to coveralls.io | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
run: coveralls --service=github | ||
- name: Publish to Coveralls with GitHub Action | ||
uses: coverallsapp/[email protected] | ||
with: | ||
parallel: true | ||
flag-name: python-${{ matrix.python-version }} | ||
|
||
web_ui: | ||
runs-on: ubuntu-latest | ||
|
@@ -62,3 +62,13 @@ jobs: | |
- uses: actions/setup-node@v3 | ||
- run: npm install | ||
- run: npm run build | ||
|
||
finish: | ||
needs: build_and_test | ||
if: ${{ always() }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
parallel-finished: true |