Skip to content

chore(ci): upgrade to codecov v4 #899

chore(ci): upgrade to codecov v4

chore(ci): upgrade to codecov v4 #899

Workflow file for this run

name: Github Actions Python Standard
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-and-upstream:
runs-on: ubuntu-latest
steps:
<<<<<<< Updated upstream

Check failure on line 13 in .github/workflows/python-standard.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-standard.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set up Python 3.9
uses: actions/setup-python@v2
=======
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
>>>>>>> Stashed changes
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install pytest-cov
pip install requests
- name: Run Script
run: |
pytest --cov=./ --cov-report=xml
- name: Upload to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Check coverage values
env:
API_KEY: ${{ secrets.API_KEY }}
CORRECT_COVERAGE: ${{ vars.CORRECT_COVERAGE }}
run: |
cd src
python request.py
cd ..
- name: Upstream to Standards
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
COVERAGE_SOURCE_FILE: ${{ secrets.COVERAGE_SOURCE_FILE }}
if: ${{ github.event_name == 'push'}}
run: |
wget --header "Authorization: token ${GH_TOKEN}" \
--header "Accept: application/vnd.github.v3.raw" \
https://api.github.com/repos/codecov/standards/contents/upstream.sh
bash upstream.sh