Skip to content

Commit

Permalink
BUG: reverted download/call order
Browse files Browse the repository at this point in the history
Different OS versions have different executable names, and so require different commands.
  • Loading branch information
aburrell committed Apr 2, 2024
1 parent d9f7aae commit 7d39757
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,6 @@ jobs:
pip install .[test]
bash requirements.extra ${{ matrix.install-extras }}
- name: Install Coveralls Reporter (Linux)
if: startsWith(matrix.os, 'ubuntu')
run: curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz

- name: Install Coveralls Reporter (Windows)
if: startsWith(matrix.os, 'windows')
run: curl -L https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.exe -o coveralls.exe

- name: Report Coveralls (macOS)
if: startsWith(matrix.os, 'macos')
run: |
brew tap coverallsapp/coveralls --quiet
brew install coveralls --quiet
- name: Test PEP8 compliance
run: flake8 . --count --show-source --statistics

Expand All @@ -69,6 +55,34 @@ jobs:
- name: Run unit and integration tests
run: coverage run --rcfile=pyproject.toml -m unittest discover

- name: Install and run Coveralls Reporter(Linux)
if: startsWith(matrix.os, 'ubuntu')
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_PARALLEL: true
run: |
curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz
./coveralls report --parallel --repo-token=${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Install and run Coveralls Reporter (Windows)
if: startsWith(matrix.os, 'windows')
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_PARALLEL: true
run: |
curl -L https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.exe -o coveralls.exe
./coveralls.exe report --parallel --repo-token=${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Report and run Coveralls (macOS)
if: startsWith(matrix.os, 'macos')
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_PARALLEL: true
run: |
brew tap coverallsapp/coveralls --quiet
brew install coveralls --quiet
coveralls report --parallel --repo-token=${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Report test coverage to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
Expand Down

0 comments on commit 7d39757

Please sign in to comment.