Skip to content

Commit

Permalink
Merge pull request #1306 from OpenC3/codecov
Browse files Browse the repository at this point in the history
Codecov action v4 with token
  • Loading branch information
jmthomas authored May 30, 2024
2 parents 68ccbe8 + 70c75ce commit 6091cf0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/api_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ jobs:
working-directory: openc3-cosmos-cmd-tlm-api
env:
OPENC3_DEVEL: ../openc3
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
directory: openc3-cosmos-cmd-tlm-api/coverage
flags: ruby-api # See codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}

script-runner-api:
if: ${{ github.actor != 'dependabot[bot]' }}
Expand All @@ -84,7 +85,8 @@ jobs:
working-directory: openc3-cosmos-script-runner-api
env:
OPENC3_DEVEL: ../openc3
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
directory: openc3-cosmos-script-runner-api/coverage
flags: ruby-api # See codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ jobs:
- name: Generate coverage
run: yarn fixlinux; yarn cobertura
working-directory: playwright
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
directory: playwright/coverage
flags: frontend # See codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test artifacts
if: always() # Upload on pass or fail
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/python_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ jobs:
coverage run -m pytest ./test/
coverage xml -i
working-directory: openc3/python
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
working-directory: openc3/python
flags: python # See codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/ruby_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,19 @@ jobs:
working-directory: openc3
env:
OPENC3_DEVEL: ${GITHUB_WORKSPACE}/openc3
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
directory: openc3/coverage
flags: ruby-backend # See codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run unit tests without extensions
run: bundle exec rspec --tag no_ext
working-directory: openc3
env:
OPENC3_NO_EXT: 1
OPENC3_DEVEL: ${GITHUB_WORKSPACE}/openc3
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
directory: openc3/coverage
flags: ruby-backend # See codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 6091cf0

Please sign in to comment.