Skip to content

Commit 6607e02

Browse files
authored
Merge pull request #110 from ghazi-git/update-github-actions
update-github-actions
2 parents c032950 + ad633a0 commit 6607e02

3 files changed

Lines changed: 15 additions & 11 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
name: Coverage
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize]
68

79
jobs:
810
run:
911
runs-on: ubuntu-latest
1012
steps:
11-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1214
- name: Setup Python
13-
uses: actions/setup-python@v5
15+
uses: actions/setup-python@v6
1416
with:
15-
python-version: 3.8
17+
python-version: 3.12
1618
- name: Generate coverage report
1719
run: |
1820
pip install .
19-
pip install django~=3.2 pytest pytest-django pytest-cov drf-spectacular django-filter
21+
pip install django~=5.2 pytest pytest-django pytest-cov drf-spectacular django-filter
2022
pytest --cov --cov-report=xml
2123
- name: Upload coverage to Codecov
2224
uses: codecov/codecov-action@v4

.github/workflows/github_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
2020
shell: bash
2121
- name: Checkout code
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323
- name: Get Changelog Entry
2424
id: changelog_reader
2525
uses: mindsers/changelog-reader-action@v2

.github/workflows/tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Tests
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize]
68

79
jobs:
810
test:
@@ -13,9 +15,9 @@ jobs:
1315
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
1416

1517
steps:
16-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1719
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@v6
1921
with:
2022
python-version: ${{ matrix.python-version }}
2123
- name: Install dependencies

0 commit comments

Comments
 (0)