ci: only run on push

This commit is contained in:
Tim Grelka
2025-07-04 00:30:50 +02:00
parent c72b382ee3
commit 41f69e71d5
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -1,5 +1,5 @@
name: Pytest name: Pytest
on: [push, pull_request] on: push
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
@@ -15,9 +15,8 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
cache: 'pip' cache: "pip"
- name: Install dependencies - name: Install dependencies
run: pip install -r requirements.txt run: pip install -r requirements.txt
- name: Test with pytest - name: Test with pytest
run: pytest ./test --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html run: pytest ./test --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
+1 -1
View File
@@ -1,5 +1,5 @@
name: Ruff name: Ruff
on: pull_request on: push
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true