Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix alternative version installation #389

Merged
merged 5 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,29 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Create cache file
run: echo '${{ matrix.pydantic-version }}-${{ matrix.sqla-version }}' > ./matrix-file.txt

- uses: pdm-project/setup-pdm@v3
name: Set up PDM
with:
python-version: ${{ matrix.python-version }}
allow-python-prereleases: true
cache: true

- name: Install dependencies
run: pdm install -G:all
cache-dependency-path: |
./pdm.lock
./matrix-file.txt

- name: Install pydantic
if: matrix.pydantic-version == '1.10'
run: source .venv/bin/activate && pip install "pydantic==1.10.10" && pip uninstall pydantic_core -y
run: pdm add --no-sync -G pydantic "pydantic[email]==1.10.10"

- name: Install SQLAlchemy
if: matrix.sqla-version == '1.4'
run: source .venv/bin/activate && pip install "sqlalchemy==1.4.49"
run: pdm add --no-sync -G sqlalchemy "sqlalchemy==1.4.49"

- name: Install dependencies
run: pdm sync -G:all

- name: Set pythonpath
run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV
Expand Down
Loading
Loading