Skip to content

Commit d9884ea

Browse files
committed
Правим настройки для CI
1 parent 7472aee commit d9884ea

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
name: CI
2-
3-
on:
4-
push:
5-
branches: [ master, main, feature/** ]
6-
pull_request:
7-
81
jobs:
92
test:
103
runs-on: ubuntu-latest
@@ -24,19 +17,20 @@ jobs:
2417
--health-retries=5
2518
2619
minio:
27-
image: bitnami/minio:latest # <-- ключевая замена
28-
ports: ["9000:9000"] # API порт
20+
image: bitnami/minio:latest
21+
ports: ["9000:9000"]
2922
env:
3023
MINIO_ROOT_USER: minioadmin
3124
MINIO_ROOT_PASSWORD: minioadmin
32-
MINIO_DEFAULT_BUCKETS: xmlsvc # создаст бакет автоматически
25+
MINIO_DEFAULT_BUCKETS: xmlsvc
3326
options: >-
3427
--health-cmd="curl -fsS http://localhost:9000/minio/health/ready || exit 1"
3528
--health-interval=5s
3629
--health-timeout=5s
3730
--health-retries=30
3831
3932
env:
33+
PYTHONPATH: ${{ github.workspace }} # <— ключевой фикс
4034
DATABASE_URL: postgresql+psycopg://xmlsvc:xmlsvc@localhost:5432/xmlsvc
4135
S3_ENDPOINT: http://localhost:9000
4236
S3_BUCKET: xmlsvc
@@ -45,7 +39,6 @@ jobs:
4539

4640
steps:
4741
- uses: actions/checkout@v4
48-
4942
- uses: actions/setup-python@v5
5043
with:
5144
python-version: "3.11"

0 commit comments

Comments
 (0)