diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 674ee80..1d74013 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,22 +1,24 @@ name: Coverage on: - - push - - pull_request + push: + branches: [main] + pull_request: + types: [opened, synchronize] jobs: run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: 3.12 - name: Generate coverage report run: | pip install . - pip install django~=3.2 pytest pytest-django pytest-cov drf-spectacular django-filter + pip install django~=5.2 pytest pytest-django pytest-cov drf-spectacular django-filter pytest --cov --cov-report=xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 diff --git a/.github/workflows/github_release.yml b/.github/workflows/github_release.yml index 815c571..45179f7 100644 --- a/.github/workflows/github_release.yml +++ b/.github/workflows/github_release.yml @@ -19,7 +19,7 @@ jobs: echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} shell: bash - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Get Changelog Entry id: changelog_reader uses: mindsers/changelog-reader-action@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 01b204b..a1cb176 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,8 +1,10 @@ name: Tests on: - - push - - pull_request + push: + branches: [main] + pull_request: + types: [opened, synchronize] jobs: test: @@ -13,9 +15,9 @@ jobs: python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies