Skip to content

Commit

Permalink
Updated the coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
erunks committed Oct 12, 2020
1 parent 33f6ffd commit 483bc98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CodacyCoverageWorkflow

on:
push:
Expand All @@ -8,7 +8,6 @@ jobs:
generate-and-upload-coverage:
runs-on: ubuntu-latest

if: github.event.pull_request.merged == true
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
Expand All @@ -26,10 +25,10 @@ jobs:
chmod +x $GITHUB_WORKSPACE/scripts/generate_coverage.sh
sh $GITHUB_WORKSPACE/scripts/generate_coverage.sh
- uses: actions/checkout@master
- name: Upload coverage
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
chmod +x $GITHUB_WORKSPACE/scripts/upload_coverage.sh
sh $GITHUB_WORKSPACE/scripts/upload_coverage.sh
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: $GITHUB_WORKSPACE/coverage.xml

1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
beautifulsoup4
coverage
dotenv-cli
freezegun
ipdb
pre-commit
2 changes: 0 additions & 2 deletions scripts/upload_coverage.sh

This file was deleted.

0 comments on commit 483bc98

Please sign in to comment.