From 75d91e3601718a489e0e1e8cec5f05bc6de53e5b Mon Sep 17 00:00:00 2001 From: AlexisRalli Date: Thu, 9 Mar 2023 17:52:33 +0000 Subject: [PATCH] updated codecov --- .DS_Store | Bin 10244 -> 10244 bytes .github/workflows/testing_and_coverage.yaml | 26 ++++++-------------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.DS_Store b/.DS_Store index e4345436a6ea58516e2625f16290f9202266b39f..eb6b427258a386e4fee13e0fddf94553a51bf38c 100644 GIT binary patch delta 79 zcmZn(XbG6$&nU7nU^hRb$Yve^Wk!B>h75)hhFpdmhGd3(hO*5Hg7O^fCYI(p3Z`b0 a-6WqQu^l#-NR_f~W>@&lviXS!6EgrD?-Zc` delta 72 zcmZn(XbG6$&nUbxU^hRb@MazXWya0Ef&v^IrY0sj3Z|AOlM96GCohp)&S7C>rlVkN aVGa`5JV~mQbz+0uW_E?&ESnWXnV13IL=-Im diff --git a/.github/workflows/testing_and_coverage.yaml b/.github/workflows/testing_and_coverage.yaml index f27a4a5..c9d323d 100644 --- a/.github/workflows/testing_and_coverage.yaml +++ b/.github/workflows/testing_and_coverage.yaml @@ -1,4 +1,4 @@ -name: Testing and Coverage +name: CodeCov on: [push] @@ -7,9 +7,6 @@ jobs: name: Testing and Coverage runs-on: ubuntu-latest - #strategy: - # matrix: - # python-version: ["3.8", "3.9"] steps: - uses: actions/checkout@v2 @@ -21,17 +18,10 @@ jobs: run: | python -m pip install --upgrade pip pip install . - - name: Run tests and collect coverage - run: | - pip install codecov - pip install pytest-cov - pytest --cov=./ --cov-report=xml - pytest tests --cov=./symmer --cov-report=xml - codecov - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3.1.0 - with: - directory: ./coverage/reports/ - env_vars: OS,PYTHON - files: /home/runner/work/symmer/symmer/coverage.xml - flags: tests + - name: Generate Report + run: | + pip install coverage + pip install pytest + coverage run -m pytest + - name: Upload Coverage to Codecov + uses: codecov/codecov-action@v2