Skip to content

Commit d55f7b8

Browse files
committed
feat: fixing cicd
1 parent 07717eb commit d55f7b8

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

.github/workflows/create-release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
# environment: release
1212
permissions:
1313
id-token: write
14+
contents: write
1415

1516
steps:
1617
- name: Checkout
@@ -24,7 +25,7 @@ jobs:
2425
uses: ncipollo/release-action@v1
2526
with:
2627
body: ${{ steps.extract-release-notes.outputs.release_notes }}
27-
token: ${{ secrets.WORKFLOWS_CREATE_RELEASE_TOKEN }}
28+
# token: ${{ secrets.WORKFLOWS_CREATE_RELEASE_TOKEN }}
2829

2930
- name: Set up Python
3031
uses: actions/setup-python@v5

.github/workflows/test-package.yml

+31-7
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,23 @@ on:
88
jobs:
99

1010
prepare:
11-
1211
runs-on: ubuntu-latest
12+
services:
13+
postgres:
14+
image: postgres
15+
env:
16+
POSTGRES_PASSWORD: postgres
17+
POSTGRES_USER: postgres
18+
POSTGRES_DB: postgres
19+
20+
options: >-
21+
--health-cmd pg_isready
22+
--health-interval 10s
23+
--health-timeout 5s
24+
--health-retries 5
25+
ports:
26+
- 5432:5432
27+
1328
steps:
1429
- name: Checkout code
1530
uses: actions/checkout@v4
@@ -19,18 +34,21 @@ jobs:
1934
id: create_matrix
2035
with:
2136
matrix: |
22-
python-version {3.8}, django-version {3.0, 3.1, 3.2, 4.0, 4.1, 4.2}
23-
python-version {3.9}, django-version {3.0, 3.1, 3.2, 4.0, 4.1, 4.2}
24-
python-version {3.10}, django-version {3.2, 4.0, 4.1, 4.2, 5.0}
25-
python-version {3.11}, django-version {4.1, 4.2, 5.0}
26-
python-version {3.12}, django-version {4.2, 5.0}
37+
python-version {3.11}, django-version {5.0, 5.1}
38+
# python-version {3.12}, django-version {5.0, 5.1}
2739
2840
outputs:
2941
matrix: ${{ steps.create_matrix.outputs.matrix }}
3042

3143
lint:
32-
3344
runs-on: ubuntu-latest
45+
env:
46+
POSTGRES_DATABASE: postgres
47+
POSTGRES_USER: postgres
48+
POSTGRES_PASSWORD: postgres
49+
POSTGRES_SERVICE_HOST: postgres
50+
POSTGRES_SERVICE_PORT: ${{ job.services.postgres.ports[5432] }}
51+
3452
steps:
3553
- name: Checkout code
3654
uses: actions/checkout@v4
@@ -63,6 +81,12 @@ jobs:
6381
fail-fast: false
6482
matrix:
6583
include: ${{fromJson(needs.prepare.outputs.matrix)}}
84+
env:
85+
POSTGRES_DATABASE: postgres
86+
POSTGRES_USER: postgres
87+
POSTGRES_PASSWORD: postgres
88+
POSTGRES_SERVICE_HOST: postgres
89+
POSTGRES_SERVICE_PORT: ${{ job.services.postgres.ports[5432] }}
6690

6791
steps:
6892

0 commit comments

Comments
 (0)