Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook in weekly mutation test #8238

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/weekly_mutation_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Weekly mutation tests (Friday 00:00)
on:
schedule:
- cron: '0 0 * * 5'

jobs:
mutationtests:
runs-on: ubuntu-latest
if: ${{ github.repository == 'Tribler/tribler' }}
steps:
- name: Checkout Tribler/tribler
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'
path: 'tribler'
- name: Check for changes
run: |
cd tribler
echo "NUM_COMMITS=$(git log --oneline --since '7 days ago' | wc -l)" >> $GITHUB_ENV
- name: Setup Python 3.10
uses: actions/setup-python@v5
if: ${{ env.NUM_COMMITS > 0 }}
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
if: ${{ env.NUM_COMMITS > 0 }}
run: |
cd tribler
python -m pip install -r requirements.txt
- name: Checkout Tribler/mutpy
if: ${{ env.NUM_COMMITS > 0 }}
uses: actions/checkout@v4
with:
repository: 'Tribler/mutpy'
path: 'mutpy'
- name: Run mutation tests
if: ${{ env.NUM_COMMITS > 0 }}
run: |
cd mutpy
python3 -m pip install .
cd bin
python3 github_report.py --codebase tribler
- name: Publish report
if: ${{ env.NUM_COMMITS > 0 }}
run: cat mutpy/bin/report.md >> $GITHUB_STEP_SUMMARY