Skip to content

Commit

Permalink
Fix GitHub actions for real (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlach authored Aug 9, 2021
1 parent b654dc7 commit 237a2e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
service_name: github-actions
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
runs-on: ${{ matrix.os }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
strategy:
matrix:
os:
Expand All @@ -52,13 +51,15 @@ jobs:
run: |
coverage run -m pytest tests
pip install coveralls; coveralls --service=github-actions
env:
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

build-and-test-linux-gui:
runs-on: ubuntu-18.04
env:
DISPLAY: ":99.0"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
steps:
- uses: actions/checkout@v2
Expand All @@ -83,6 +84,9 @@ jobs:
run: |
coverage run -m pytest -v gui/tests
pip install coveralls; coveralls --service=github-actions
env:
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Get the version
if: startsWith(github.ref, 'refs/tags/')
id: get_version
Expand Down Expand Up @@ -112,7 +116,6 @@ jobs:
PYTHON_VERSION: 3.9.1
MACOSX_DEPLOYMENT_TARGET: 10.13
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Get Python
Expand All @@ -137,6 +140,9 @@ jobs:
run: |
coverage run -m pytest -v gui/tests
pip3 install coveralls; coveralls --service=github-actions
env:
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Get the version
if: startsWith(github.ref, 'refs/tags/')
id: get_version
Expand Down

0 comments on commit 237a2e3

Please sign in to comment.