mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 14:38:12 +08:00
make env variables available in each step
This commit is contained in:
@@ -6,6 +6,16 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
MONGO_HOST: "127.0.0.1"
|
||||||
|
REDIS_HOST: "127.0.0.1"
|
||||||
|
AWS_ENDPOINT_URL: http://aws:4566
|
||||||
|
AWS_REGION: "us-east-1"
|
||||||
|
AWS_ACCESS_KEY_ID: "test"
|
||||||
|
AWS_SECRET_ACCESS_KEY: "test"
|
||||||
|
AWS_DEFAULT_REGION: "us-east-1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -92,18 +102,10 @@ jobs:
|
|||||||
uv sync --extra testing --python ${{ matrix.python-version }}
|
uv sync --extra testing --python ${{ matrix.python-version }}
|
||||||
uv pip install "django~=${{ matrix.django }}a1"
|
uv pip install "django~=${{ matrix.django }}a1"
|
||||||
- name: Create SQS queue
|
- name: Create SQS queue
|
||||||
run: aws sqs create-queue --queue-name testing --region us-east-1 --endpoint-url http://localhost:4566
|
run: aws sqs create-queue --queue-name testing
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
uv run pytest --cov=./django_q --cov-report=xml
|
uv run pytest --cov=./django_q --cov-report=xml
|
||||||
env:
|
|
||||||
MONGO_HOST: "127.0.0.1"
|
|
||||||
REDIS_HOST: "127.0.0.1"
|
|
||||||
AWS_ENDPOINT_URL: http://aws:4566
|
|
||||||
AWS_REGION: "us-east-1"
|
|
||||||
AWS_ACCESS_KEY_ID: "test"
|
|
||||||
AWS_SECRET_ACCESS_KEY: "test"
|
|
||||||
AWS_DEFAULT_REGION: "us-east-1"
|
|
||||||
- name: Upload to coveralls
|
- name: Upload to coveralls
|
||||||
run: |
|
run: |
|
||||||
python -m pip install coveralls
|
python -m pip install coveralls
|
||||||
|
|||||||
Reference in New Issue
Block a user