diff --git a/.coverage.Colins-Air.indiana.edu.21211.834887 b/.coverage.Colins-Air.indiana.edu.21211.834887 new file mode 100644 index 00000000000..d4e86972b75 Binary files /dev/null and b/.coverage.Colins-Air.indiana.edu.21211.834887 differ diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 00000000000..a302bd4edf8 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,62 @@ +name: Codecov +env: + PIP_DEFAULT_TIMEOUT: 100 + GTFF_USE_PROMPT_TOOLKIT: false + GTFF_USE_ION: false + GTFF_ENABLE_QUICK_EXIT: true +on: [pull_request, push] +jobs: + run: + name: Codecov Report + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Setup Python + uses: actions/setup-python@master + with: + python-version: 3.7 + + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Setup Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: "3.9" + architecture: x64 + + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + version: 1.1.11 + virtualenvs-create: true + virtualenvs-in-project: true + + - name: Load cached venv + id: cached-poetry-dependencies + uses: actions/cache@v2 + with: + path: .venv + key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} + + - name: Install dependencies + if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' + run: poetry install --no-interaction --no-root + + - name: Install Package + run: poetry install --no-interaction + + - name: Generate coverage report + run: | + source $VENV + pytest --cov=./ --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} + env_vars: OS,PYTHON + fail_ci_if_error: true + files: ./coverage.xml + flags: unittests + name: codecov-umbrella + verbose: true