Skip to content

Commit

Permalink
Migrate to BMCV/github-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin authored Oct 2, 2024
1 parent 73bb189 commit 65d452f
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 51 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/post-pr-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Post pull request comment

on:
workflow_run:
workflows: [Test suite]
types: [completed]

jobs:
post_pr_comment:
uses: BMCV/github-workflows/.github/workflows/coverage-post-pr-comment.yml@main
secrets:
github-auth: ${{ secrets.GITHUB_TOKEN }}
51 changes: 0 additions & 51 deletions .github/workflows/tests.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test suite

on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- develop
- master
paths:
- .github/workflows/testsuite.yml
- giatools/*.py
- setup.py
- tests/*.py
- tests/data/**
- requirements.txt
- tests/requirements.txt

jobs:
run_testsuite:
name: Tests
uses: BMCV/github-workflows/.github/workflows/coverage-run.yml@main
with:
main_branch: master
python_versions: '["3.9", "3.10"]'
main_python_version: "3.10"
pip-install: -r requirements.txt
gist-id: bb85310a74d6b05330d230443007b878
gist-filename: tournaments.json
run: |
coverage run --source='.' manage.py test
python -m coverage json --omit "*/tests.py,*/migrations/*.py,manage.py"
secrets:
gist-auth: ${{ secrets.GIST_SECRET }}

0 comments on commit 65d452f

Please sign in to comment.