Skip to content

Commit 5314b09

Browse files
committed
Update Workflow to reflect new branch structure
1 parent 8f92188 commit 5314b09

File tree

1 file changed

+19
-37
lines changed

1 file changed

+19
-37
lines changed

.github/workflows/dependencies.yaml

Lines changed: 19 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,61 +13,43 @@ permissions:
1313
concurrency:
1414
group: ${{ github.workflow }}
1515

16+
env:
17+
PYTHON_VERSIONS: [ '3.9', '3.10', '3.11', '3.12' ]
18+
PYTHON_VERSION_DOCS: 3.12
19+
1620
jobs:
1721
update-dependencies:
1822
runs-on: ubuntu-24.04
19-
strategy:
20-
matrix:
21-
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
2223
steps:
2324
- uses: actions/checkout@v4
2425
with:
26+
ref: dev
2527
ssh-key: ${{ secrets.DEPENDENCY_WORKFLOW_KEY }}
2628
- uses: actions/setup-python@v5
2729
with:
28-
python-version: ${{ matrix.python-version }}
29-
- run: pip install pip-tools==7.4.1
30-
- name: Update dependencies
31-
run: |
32-
cd requirements
33-
pip-compile --upgrade --no-annotate -o examples-requirements-py${{ matrix.python-version }}.txt --all-extras ../pyproject.toml examples.in
34-
pip-compile --upgrade --no-annotate -o tests-requirements-py${{ matrix.python-version }}.txt examples-requirements-py${{ matrix.python-version }}.txt tests.in
35-
- name: Open PR
36-
uses: peter-evans/[email protected]
37-
with:
38-
commit-message: Dependency updates for Python ${{ matrix.python-version }}
39-
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
40-
branch: deps/py${{ matrix.python-version }}
41-
delete-branch: true
42-
title: Dependency updates for Python ${{ matrix.python-version }}
43-
labels: |
44-
dependencies
45-
body: |
46-
Dependency updates by pip-compile
30+
python-version: $PYTHON_VERSIONS
4731

48-
update-dependencies-docs:
49-
runs-on: ubuntu-24.04
50-
steps:
51-
- uses: actions/checkout@v4
52-
with:
53-
ssh-key: ${{ secrets.DEPENDENCY_WORKFLOW_KEY }}
54-
- uses: actions/setup-python@v5
55-
with:
56-
python-version: '3.12'
57-
- run: pip install pip-tools==7.4.1
5832
- name: Update dependencies
5933
run: |
6034
cd requirements
61-
pip-compile --upgrade --no-annotate -o docs-requirements.txt examples-requirements-py3.12.txt docs.in
35+
for VER in $PYTHON_VERSIONS
36+
do
37+
python-$VER -m pip install pip-tools==7.4.1
38+
python-$VER -m piptools compile --upgrade --no-annotate -o examples-requirements-py$VER.txt --all-extras ../pyproject.toml examples.in
39+
python-$VER -m piptools compile --upgrade --no-annotate -o tests-requirements-py$VER.txt examples-requirements-py$VER.txt tests.in
40+
done
41+
python-$PYTHON_VERSION_DOCS -m piptools compile --upgrade --no-annotate -o docs-requirements.txt examples-requirements-py3.12.txt docs.in
42+
6243
- name: Open PR
6344
uses: peter-evans/[email protected]
6445
with:
65-
commit-message: Dependency updates for docs
46+
commit-message: Dependency updates
6647
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
67-
branch: deps/docs
48+
branch: deps/dependency-updates
49+
base: dev
6850
delete-branch: true
69-
title: Dependency updates for docs
51+
title: Dependency updates
7052
labels: |
7153
dependencies
7254
body: |
73-
Dependency updates by pip-compile
55+
Dependency updates by pip-compile

0 commit comments

Comments
 (0)