55 workflow_dispatch :
66 schedule :
77 - cron : ' 47 8 19 * *'
8+ push :
9+ branches :
10+ - dev
11+ paths :
12+ - ' .github/workflows/dependencies.yaml'
13+ - ' requirements/*.in'
814
915permissions :
1016 pull-requests : write
@@ -13,61 +19,43 @@ permissions:
1319concurrency :
1420 group : ${{ github.workflow }}
1521
22+ env :
23+ PYTHON_VERSIONS : 3.9 3.10 3.11 3.12
24+ PYTHON_VERSION_DOCS : 3.12
25+
1626jobs :
1727 update-dependencies :
1828 runs-on : ubuntu-24.04
19- strategy :
20- matrix :
21- python-version : [ '3.9', '3.10', '3.11', '3.12' ]
2229 steps :
2330 - uses : actions/checkout@v4
2431 with :
32+ ref : dev
2533 ssh-key : ${{ secrets.DEPENDENCY_WORKFLOW_KEY }}
2634 - uses : actions/setup-python@v5
2735 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
36+ python-version : $PYTHON_VERSIONS
4737
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
5838 - name : Update dependencies
5939 run : |
6040 cd requirements
61- pip-compile --upgrade --no-annotate -o docs-requirements.txt examples-requirements-py3.12.txt docs.in
41+ for VER in $PYTHON_VERSIONS
42+ do
43+ python-$VER -m pip install pip-tools==7.4.1
44+ python-$VER -m piptools compile --upgrade --no-annotate -o examples-requirements-py$VER.txt --all-extras ../pyproject.toml examples.in
45+ python-$VER -m piptools compile --upgrade --no-annotate -o tests-requirements-py$VER.txt examples-requirements-py$VER.txt tests.in
46+ done
47+ python-$PYTHON_VERSION_DOCS -m piptools compile --upgrade --no-annotate -o docs-requirements.txt examples-requirements-py3.12.txt docs.in
48+
6249 - name : Open PR
6350 uses :
peter-evans/[email protected] 6451 with :
65- commit-message : Dependency updates for docs
52+ commit-message : Dependency updates
6653 author : github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
67- branch : deps/docs
54+ branch : deps/dependency-updates
55+ base : dev
6856 delete-branch : true
69- title : Dependency updates for docs
57+ title : Dependency updates
7058 labels : |
7159 dependencies
7260 body : |
73- Dependency updates by pip-compile
61+ Dependency updates by pip-compile
0 commit comments