CodeCov #5769
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 | |
on: | |
push: | |
branches: [master, stag, feature*] | |
pull_request: | |
branches: [master, stag, feature*] | |
schedule: | |
- cron: "0 10 * * *" | |
jobs: | |
run: | |
runs-on: ubuntu-20.04 | |
env: | |
OS: ubuntu-latest | |
PYTHON: '3.6' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.6 | |
- name: Generate Report | |
run: | | |
source scripts/test_env.sh | |
sed -i '/APIGW_ENABLED/d' dev.env.yml | |
pip install -r requirements.txt | |
pip install coverage | |
pip uninstall pycrypto -y | |
pip uninstall pycryptodome -y | |
pip install pycryptodome | |
coverage run manage.py test apps.tests | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v1 |