Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 0193199

Browse files
push static analysis info of the CLI to codecov (#204)
1 parent fb96c80 commit 0193199

File tree

1 file changed

+31
-7
lines changed

1 file changed

+31
-7
lines changed

.github/workflows/push_flow.yml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,23 @@ jobs:
2323
run: |
2424
isort --check --profile=black codecov_cli -p staticcodecov_languages
2525
26+
codecov-startup:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/setup-python@v3
30+
- name: Install CLI
31+
run: |
32+
pip install codecov-cli
33+
- name: Create commit in codecov
34+
run: |
35+
codecovcli create-commit -t ${{ secrets.CODECOV_TOKEN }} --git-service github
36+
- name: Create commit report in codecov
37+
run: |
38+
codecovcli create-report -t ${{ secrets.CODECOV_TOKEN }} --git-service github
39+
2640
build-test-upload:
2741
runs-on: ubuntu-latest
42+
needs: codecov-startup
2843
strategy:
2944
fail-fast: false
3045
matrix:
@@ -47,16 +62,25 @@ jobs:
4762
python -m pip install --upgrade pip
4863
pip install -r requirements.txt
4964
python setup.py develop
50-
- name: Create commit in codecov
51-
run: |
52-
codecovcli create-commit -t ${{ secrets.CODECOV_TOKEN }} --git-service github
53-
- name: Create commit report in codecov
54-
run: |
55-
codecovcli create-report -t ${{ secrets.CODECOV_TOKEN }} --git-service github
5665
- name: Test with pytest
5766
run: |
5867
pytest --cov
5968
- name: Dogfooding codecov-cli. Use codecov-cli to upload to codecov (new upload endpoint)
6069
run: |
6170
codecovcli do-upload --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}}
62-
71+
72+
static-analysis:
73+
runs-on: ubuntu-latest
74+
needs: codecov-startup
75+
steps:
76+
- uses: actions/setup-python@v3
77+
- name: Install CLI
78+
run: |
79+
pip install codecov-cli
80+
- uses: actions/checkout@v3
81+
with:
82+
submodules: true
83+
fetch-depth: 2
84+
- name: Static Analysis
85+
run: |
86+
codecovcli static-analysis --token ${{ secrets.STATIC_TOKEN }}

0 commit comments

Comments
 (0)