diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 681e970..fe81693 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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 - \ No newline at end of file diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 1f323b2..dfbd008 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -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 \ No newline at end of file + args: format --diff