1313
1414permissions : read-all
1515
16+ env :
17+ CACHE_GLOBS : |
18+ **/pyproject.toml
19+ **/requirements*.txt
20+ **/setup.py
21+ **/uv.lock
22+
1623jobs :
1724 build :
1825 runs-on : ubuntu-latest
1926
2027 steps :
2128 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
2229
23- - name : Set up Python 3.13
24- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
30+ - uses : astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
2531 with :
26- python-version : " 3.13"
27- cache : pip
28-
29- - name : Install uv
30- uses : install-pinned/uv@4d66dd6355704140c330bc2a2e6291cbf3bcb67f
32+ python-version : 3.13
33+ activate-environment : true
34+ cache-dependency-glob : ${{ env.CACHE_GLOBS }}
3135
32- - name : Install parsons
33- run : >-
36+ - run : >-
3437 uv sync
3538 --upgrade
3639 --all-extras
3740
38- - name : Build source distribution
39- run : >-
41+ - run : >-
4042 uv build
4143 --sdist
4244
43- - name : Upload dist directory
44- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
45+ - uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
4546 with :
4647 name : parsons-dist
4748 path : dist/
@@ -65,14 +66,12 @@ jobs:
6566 runs-on : ${{ matrix.os }}
6667
6768 steps :
68- - name : Download package
69- uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3
69+ - uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3
7070 with :
7171 name : parsons-dist
7272 path : dist
7373
74- - name : Extract requirements for cache
75- shell : bash
74+ - shell : bash
7675 run : |
7776 file=$(find ./dist -name 'parsons-*.tar.gz' | head -1)
7877
@@ -86,14 +85,13 @@ jobs:
8685 # Clean up
8786 rm -rf temp_extract
8887
89- - name : Set up Python ${{ matrix.python-version }}
90- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
88+ - uses : astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
9189 with :
92- python-version : ${{ matrix.python-version }}
93- cache : pip
90+ python-version : ${{ matrix.python-version }}
91+ activate-environment : true
92+ cache-dependency-glob : ${{ env.CACHE_GLOBS }}
9493
95- - name : Install package
96- shell : bash
94+ - shell : bash
9795 run : |
9896 file=$(find ./dist -name 'parsons-*.tar.gz' | head -1)
9997 pip install "$file"
@@ -111,14 +109,12 @@ jobs:
111109 steps :
112110 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
113111
114- - name : Download package
115- uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3
112+ - uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3
116113 with :
117114 name : parsons-dist
118115 path : dist
119116
120- - name : Publish
121- uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
117+ - uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
122118 with :
123119 verify-metadata : true
124120 skip-existing : true
0 commit comments