@@ -27,7 +27,8 @@ concurrency:
2727
2828env :
2929 # Common versions
30- PYTHON_VERSION : ' 3.11.5'
30+ PYTHON_VERSION : ' 3.11'
31+ HATCH_VERSION : ' 1.12.0'
3132
3233 # The PyPi project version to push. The default is v0.0.0+gitdate-gitsha.
3334 PYPI_VERSION : ${{ inputs.version }}
@@ -45,10 +46,10 @@ jobs:
4546 python-version : ${{ env.PYTHON_VERSION }}
4647
4748 - name : Setup Hatch
48- run : pipx install hatch==1.7.0
49+ run : pipx install hatch==${{ env.HATCH_VERSION }}
4950
5051 - name : Lint
51- run : hatch run lint:check
52+ run : hatch fmt
5253
5354 unit-test :
5455 runs-on : ubuntu-22.04
@@ -62,10 +63,10 @@ jobs:
6263 python-version : ${{ env.PYTHON_VERSION }}
6364
6465 - name : Setup Hatch
65- run : pipx install hatch==1.7.0
66+ run : pipx install hatch==${{ env.HATCH_VERSION }}
6667
6768 - name : Run Unit Tests
68- run : hatch run test:unit
69+ run : hatch test --all --randomize
6970
7071
7172 build :
8081 python-version : ${{ env.PYTHON_VERSION }}
8182
8283 - name : Setup Hatch
83- run : pipx install hatch==1.7.0
84+ run : pipx install hatch==${{ env.HATCH_VERSION }}
8485
8586 # If a version wasn't explicitly passed as a workflow_dispatch input we
8687 # default to version v0.0.0+<git-commit-date>-<git-short-sha>, for example
@@ -143,7 +144,7 @@ jobs:
143144 python-version : ${{ env.PYTHON_VERSION }}
144145
145146 - name : Setup Hatch
146- run : pipx install hatch==1.7.0
147+ run : pipx install hatch==${{ env.HATCH_VERSION }}
147148
148149 - name : Build Documentation
149150 run : hatch run docs:pdoc -d google crossplane/function -o docs
0 commit comments