@@ -23,36 +23,10 @@ jobs:
2323 steps :
2424 - name : Check out repository
2525 uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
26- - name : Setup JFrog
27- uses : ./.github/actions/setup-jfrog
28- - name : Set up python ${{ matrix.python-version }}
29- id : setup-python
30- uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
26+ - name : Setup Poetry
27+ uses : ./.github/actions/setup-poetry
3128 with :
3229 python-version : ${{ matrix.python-version }}
33- - name : Install Poetry
34- run : |
35- pip install poetry==2.2.1
36- poetry config virtualenvs.create true
37- poetry config virtualenvs.in-project true
38- poetry config installer.parallel true
39- - name : Configure Poetry JFrog source
40- run : |
41- poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
42- poetry config http-basic.jfrog gha-service-account "${JFROG_ACCESS_TOKEN}"
43- poetry source add --priority=primary jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
44- poetry lock
45- - name : Load cached venv
46- id : cached-poetry-dependencies
47- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
48- with :
49- path : .venv
50- key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ github.event.repository.name }}-${{ hashFiles('**/poetry.lock') }}
51- - name : Install dependencies
52- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
53- run : poetry install --no-interaction --no-root
54- - name : Install library
55- run : poetry install --no-interaction
5630 - name : Black
5731 run : poetry run black --check src
5832
@@ -66,36 +40,10 @@ jobs:
6640 steps :
6741 - name : Check out repository
6842 uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
69- - name : Setup JFrog
70- uses : ./.github/actions/setup-jfrog
71- - name : Set up python ${{ matrix.python-version }}
72- id : setup-python
73- uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
43+ - name : Setup Poetry
44+ uses : ./.github/actions/setup-poetry
7445 with :
7546 python-version : ${{ matrix.python-version }}
76- - name : Install Poetry
77- run : |
78- pip install poetry==2.2.1
79- poetry config virtualenvs.create true
80- poetry config virtualenvs.in-project true
81- poetry config installer.parallel true
82- - name : Configure Poetry JFrog source
83- run : |
84- poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
85- poetry config http-basic.jfrog gha-service-account "${JFROG_ACCESS_TOKEN}"
86- poetry source add --priority=primary jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
87- poetry lock
88- - name : Load cached venv
89- id : cached-poetry-dependencies
90- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
91- with :
92- path : .venv
93- key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ github.event.repository.name }}-${{ hashFiles('**/poetry.lock') }}
94- - name : Install dependencies
95- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
96- run : poetry install --no-interaction --no-root
97- - name : Install library
98- run : poetry install --no-interaction
9947 - name : Mypy
10048 run : |
10149 mkdir .mypy_cache
0 commit comments