diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index e8780a9..2517bb3 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -18,9 +18,11 @@ jobs: - name: Install package locally run: pip install -e wildfire_evac - name: Install pytest for testing - run: python -m pip install pytest + run: python -m pip install pytest pytest-cov - name: Run tests run: python -m pytest -s + - name: Generate code coverage file + run: python -m pytest --cov . - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: diff --git a/.gitignore b/.gitignore index 7b42f22..783b149 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ -# Standard elements to receive +# Standard elements to remove __pycache__ .pytest_cache frontend/ .DS_Store env/ +.coverage # Elements associated with publishing as a package wildfire_evac/wildfire_evac.egg-info/