Skip to content

Commit

Permalink
s/master/main/g trying coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
justquick committed Aug 7, 2022
1 parent dfa3eb4 commit e30d1cb
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [ main ]
schedule:
- cron: '23 23 * * 4'

Expand Down
42 changes: 37 additions & 5 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: Tests

# define when to run the action

# define when to run the action
on:
push:
branches: [ 'master']
branches:
- main
paths:
- '**.py'
- '**.txt'
- '**.yaml'
- '**.toml'
pull_request:
branches: [ 'master']
branches:
- main
paths:
- '**.py'
- '**.txt'
Expand Down Expand Up @@ -123,3 +122,36 @@ jobs:
run: coverage run runtests/manage.py test -v3 --noinput actstream testapp testapp_nested
env:
DATABASE_ENGINE: ${{ matrix.database }}
COVERAGE_FILE: ".coverage.${{ matrix.python_version }}"

- name: Store coverage file
uses: actions/upload-artifact@v2
with:
name: coverage
path: .coverage.${{ matrix.python_version }}

coverage:
name: Coverage
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v2
id: download
with:
name: 'coverage'

- name: Coverage comment
id: coverage_comment
uses: ewjoachim/python-coverage-comment-action@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_COVERAGE_FILES: true

- name: Store Pull Request comment to be posted
uses: actions/upload-artifact@v2
if: steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true'
with:
name: python-coverage-comment-action
path: python-coverage-comment-action.txt

0 comments on commit e30d1cb

Please sign in to comment.