Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload to staging as well in CI #395

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@ jobs:
- name: Create commit in codecov
run: |
codecovcli create-commit -t ${{ secrets.CODECOV_TOKEN }} --git-service github
- name: Create commit in codecov (staging)
run: |
codecovcli --enterprise-url=${{ secrets.CODECOV_STAGING_URL }} create-commit -t ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} --git-service github
- name: Create commit report in codecov
run: |
codecovcli create-report -t ${{ secrets.CODECOV_TOKEN }} --git-service github
- name: Create commit report in codecov (staging)
run: |
codecovcli --enterprise-url=${{ secrets.CODECOV_STAGING_URL }} create-report -t ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} --git-service github

build-test-upload:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -77,11 +83,22 @@ jobs:
- name: Test with pytest
run: |
pytest --cov --junitxml=junit.xml
- name: Dogfooding codecov-cli
- name: Dogfooding codecov-cli for coverage
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
run: |
codecovcli -v do-upload --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}}
codecovcli do-upload --report-type test_results --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}}
- name: Dogfooding codecov-cli for test results
if: ${{ !cancelled() && !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
run: |
codecovcli do-upload --report-type test_results --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --flag python${{matrix.python-version}}
- name: Dogfooding codecov-cli for coverage (staging)
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
run: |
codecovcli --enterprise-url=${{ secrets.CODECOV_STAGING_URL }} do-upload --fail-on-error -t ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} --plugin pycoverage --flag python${{matrix.python-version}}
- name: Dogfooding codecov-cli for test results (staging)
if: ${{ !cancelled() && !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
run: |
codecovcli --enterprise-url=${{ secrets.CODECOV_STAGING_URL }} do-upload --report-type test_results --fail-on-error -t ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} --flag python${{matrix.python-version}}

static-analysis:
runs-on: ubuntu-latest
Expand Down
Loading