Unverified Commit 5ff31968 authored by Yossi Gottlieb's avatar Yossi Gottlieb Committed by GitHub
Browse files

Improve codecov workflow. (#69)

A public repository does not require a token, so we get the benefit of
being able to run coverage on PRs as well.
parent 40f6ec4a
......@@ -20,17 +20,5 @@ jobs:
- name: Run tests
run:
make tests_full
- name: Set up codecov
run: |
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
- name: Upload data to codecov
env:
HAS_CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN != '' }}
if: env.HAS_CODECOV_TOKEN == 'true'
run: ./codecov -t ${CODECOV_TOKEN}
- name: Upload to codecov
uses: codecov/codecov-action@v2
......@@ -24,17 +24,5 @@ jobs:
- name: Run tests
run:
make tests_full
- name: Set up codecov
run: |
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
- name: Upload data to codecov
env:
HAS_CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN != '' }}
if: env.HAS_CODECOV_TOKEN == 'true'
run: ./codecov -t ${CODECOV_TOKEN}
- name: Upload to codecov
uses: codecov/codecov-action@v2
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment