add tests for statistics calculations #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codecov-ATS | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
codecov-ats: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v3 | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Codecov CLI | |
run: | | |
python -m pip install --upgrade pip | |
pip install codecov-cli | |
- name: Create commit in codecov | |
run: | | |
codecovcli create-commit -t ${{ secrets.CODECOV_TOKEN }} | |
- name: Create commit report in codecov | |
run: | | |
codecovcli create-report -t ${{ secrets.CODECOV_TOKEN }} | |
- name: Static Analysis | |
run: | | |
codecovcli static-analysis --token ${{ secrets.CODECOV_STATIC_TOKEN }} | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Label Analysis | |
run: | | |
BASE_SHA=$(git merge-base HEAD^ origin/main) | |
codecovcli label-analysis --token ${{ secrets.CODECOV_STATIC_TOKEN }} --base-sha=$BASE_SHA | |
- name: Upload to Codecov | |
run: | | |
codecovcli --codecov-yml-path=codecov.yml do-upload \ | |
-t ${{ secrets.CODECOV_TOKEN }} \ | |
--plugin pycoverage \ | |
--plugin compress-pycoverage \ | |
--flag smart-tests |