Skip to content

Commit

Permalink
Add dependencies to matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
danyi1212 committed Mar 17, 2024
1 parent 96a8b45 commit e482e9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
ujson-version: ["5.9"]
orjson-version: ["3.9"]
fastapi-version: ["0.110"]
flask-version: ["3.0"]
django-version: ["5.0"]
celery-version: ["5.3"]

steps:
- uses: actions/checkout@v4
Expand All @@ -45,6 +51,9 @@ jobs:
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root

- name: Install optional dependencies
run: poetry add "ujson~=${{ matrix.ujson-version }}" "orjson~=${{ matrix.orjson-version }}" "fastapi~=${{ matrix.fastapi-version }}" "flask~=${{ matrix.flask-version }}" "django~=${{ matrix.django-version }}" "celery~=${{ matrix.celery-version }}" --no-interaction

- name: Install library
run: poetry install --no-interaction

Expand Down

0 comments on commit e482e9e

Please sign in to comment.