ci: only run on push
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: Pytest
|
||||
on: [push, pull_request]
|
||||
on: push
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
@@ -15,9 +15,8 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
cache: 'pip'
|
||||
cache: "pip"
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements.txt
|
||||
- name: Test with pytest
|
||||
run: pytest ./test --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: Ruff
|
||||
on: pull_request
|
||||
on: push
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
@@ -13,4 +13,4 @@ jobs:
|
||||
args: check --output-format=github
|
||||
- uses: astral-sh/ruff-action@v3
|
||||
with:
|
||||
args: format --diff
|
||||
args: format --diff
|
||||
|
||||
Reference in New Issue
Block a user