Skip to content
New issue

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

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

Already on GitHub? # to your account

[workflow] Use pdm to manage dependencies (backport #5924) #5926

Merged
merged 1 commit into from
Jan 17, 2025
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
17 changes: 10 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,24 @@ jobs:
PUBLISH: ${{ needs.branch.outputs.publish }}

steps:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.11"
cache: true
- name: Installing the library
run: |
pip install .[docs]
pip install git+https://github.com/haiiliin/sphinx-immaterial.git
pip show abqpy
pdm install --group docs
pdm run python -m ensurepip
pdm run python -m pip install git+https://github.com/haiiliin/sphinx-immaterial.git
pdm run python -m pip show abqpy
- name: Build the documentation
run: |
cd docs && make ${{ matrix.builder }}
cd docs && pdm run make ${{ matrix.builder }}
env:
SPHINXOPTS: -j auto
- name: Upload artifacts
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ jobs:
3.12
3.13
allow-prereleases: true
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox coveralls
pip install tox tox-pdm coveralls
- name: Test with tox
run: tox
env:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ jobs:
ref: ${{ matrix.version }}
fetch-depth: 0
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v5
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: 3.11
python-version: "3.11"
cache: true
- name: Install dependencies
run: pip install .[dev,docs]
run: |
pdm install --group dev,docs
- name: Update submodules
run: |
git pull --recurse-submodules
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,6 @@ docs/source/locales/

# test files
test-report.xml

# pdm
.pdm-python
Loading
Loading