Skip to content

Commit

Permalink
Merge pull request #12 from codecov/switch-to-v4-beta
Browse files Browse the repository at this point in the history
fix: switch to v4-beta
  • Loading branch information
thomasrockhu-codecov authored Oct 24, 2023
2 parents f864b3e + 4493039 commit ee3ae52
Show file tree
Hide file tree
Showing 3 changed files with 1,970 additions and 1,064 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/cpp-11-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ name: Github Actions C++ Standard
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
test-and-upstream:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python 3.9
uses: actions/setup-python@v2
token: ${{ secrets.STANDARDS_TOKEN }}
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.11'
- name: Before Install
run: |
pip install requests
Expand All @@ -29,13 +29,18 @@ jobs:
g++ -std=c++11 -o TestBinary -fprofile-arcs -ftest-coverage test/test_index.cpp
./TestBinary
gcov -o . test/test_index.cpp
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
python request.py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Test coverage percentage
run: python request.py
env:
API_KEY: ${{ secrets.API_KEY }}
EXPECTED_COVERAGE: ${{ secrets.EXPECTED_COVERAGE }}
- name: Upstream to Standards
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.STANDARDS_TOKEN }}
COVERAGE_SOURCE_FILE: ${{ secrets.COVERAGE_SOURCE_FILE }}
if: ${{ github.event_name == 'push'}}
run: |
Expand Down
Loading

0 comments on commit ee3ae52

Please sign in to comment.