Merge pull request #26 from utsavll0/vighnesh_fourth_branch(new) #17
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: Running Code Coverage | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Python 3.9.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9.9 | |
- name: Install dependencies | |
run: | | |
pip install pytest-cov | |
pip install -r requirements.txt | |
echo requirements installed | |
- name: Run the tests | |
run: | | |
python application.py & | |
sleep 5 | |
cd tests | |
coverage run test_module.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |