From 45d2a455f0061bfea690e27e2c42143f52242048 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 4 Jun 2021 01:56:15 +0530 Subject: using pipenv action --- .github/workflows/Codecov.yaml | 13 +++++++------ .github/workflows/Flask-Tests.yaml | 11 ++++++----- 2 files changed, 13 insertions(+), 11 deletions(-) (limited to '.github') 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 -- cgit v1.2.3