diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 01:56:15 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 01:56:15 +0530 |
commit | 45d2a455f0061bfea690e27e2c42143f52242048 (patch) | |
tree | 99d559335ac9169b68b493392e3c141ad5de787a | |
parent | a841189e2465033a0a8f32c1fc7280aaaad8a288 (diff) |
using pipenv action
-rw-r--r-- | .github/workflows/Codecov.yaml | 13 | ||||
-rw-r--r-- | .github/workflows/Flask-Tests.yaml | 11 |
2 files changed, 13 insertions, 11 deletions
diff --git a/.github/workflows/Codecov.yaml b/.github/workflows/Codecov.yaml index b4872e5..c9d66ac 100644 --- a/.github/workflows/Codecov.yaml +++ b/.github/workflows/Codecov.yaml @@ -22,14 +22,15 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install Dependencies - run: | - curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash - pipenv install --dev - pipenv install pytest-cov + uses: VaultVulp/action-pipenv@v2.0.1 + with: + command: install --dev - name: Generate Coverage Report - run: | - pipenv run pytest --cov=./ --cov-report=xml + uses: VaultVulp/action-pipenv@v2.0.1 + with: + command: run tests-codecov + - name: Upload Report uses: codecov/codecov-action@v1 with: diff --git a/.github/workflows/Flask-Tests.yaml b/.github/workflows/Flask-Tests.yaml index cce4ed1..160ddfe 100644 --- a/.github/workflows/Flask-Tests.yaml +++ b/.github/workflows/Flask-Tests.yaml @@ -23,10 +23,11 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install Dependencies - run: | - curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash - pipenv install --dev + uses: VaultVulp/action-pipenv@v2.0.1 + with: + command: install --dev - name: Run Tests - run: | - pipenv run pytest
\ No newline at end of file + uses: VaultVulp/action-pipenv@v2.0.1 + with: + command: run tests
\ No newline at end of file |