@@ -107,83 +107,69 @@ jobs:
107107 - run : hatch run lint:typing
108108 if : always()
109109
110- # package:
111- # needs: [code-quality, test]
110+ package :
111+ needs : [code-quality, test]
112112
113- # runs-on: ubuntu-latest
114-
115- # steps:
116- # - uses: actions/checkout@v3
117- # with:
118- # fetch-depth: 0
119-
120- # - run: git describe --tag
121- # - run: git describe --tag --long --first-parent --match "v[0-9]*"
113+ runs-on : ubuntu-latest
122114
123- # - name: setup python environment
124- # id: setup-python
125- # uses: actions/setup-python@v4
126- # with:
127- # python-version: "3.8"
115+ steps :
116+ - uses : actions/checkout@v3
117+ with :
118+ fetch-depth : 0
128119
129- # - name: install Poetry
130- # uses: snok/install-poetry@v1
131- # with:
132- # virtualenvs-create: true
133- # virtualenvs-in-project: true
120+ - run : git describe --tag
121+ - run : git describe --tag --long --first-parent --match "v[0-9]*"
134122
135- # - name: Load cached venv
136- # id: cached-poetry-dependencies
137- # uses: actions/cache@v3
138- # with:
139- # path: .venv
140- # key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
123+ - name : setup python environment
124+ id : setup-python
125+ uses : actions/setup-python@v4
126+ with :
127+ python-version : " 3.8"
141128
142- # - name: Install dependencies
143- # if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
144- # run: poetry install --no-interaction --no-root
129+ - name : Ensure latest pip is installed
130+ run : python -m pip install --upgrade pip
145131
146- # - name: install robotcode
147- # run: poetry install --no-interaction
132+ - name : Ensure latest hatch is installed
133+ run : python -m pip install --upgrade hatch
148134
149- # - name: Setup Node.js environment
150- # uses: actions/setup-node@v3
151- # with:
152- # node-version: "16"
153- # cache: "npm"
154- # cache-dependency-path: package-lock.json
135+ - name : Setup Node.js environment
136+ uses : actions/setup-node@v3
137+ with :
138+ node-version : " 16"
139+ cache : " npm"
140+ cache-dependency-path : package-lock.json
155141
156- # - name: install node modules
157- # run: npm install --also=dev
142+ - name : install node modules
143+ run : npm install --also=dev
158144
159- # - name: update versions from git
160- # if: ${{ !startsWith( github.ref, 'refs/tags/v') }}
161- # run: poetry run python ./scripts/update_git_versions.py
145+ - name : update versions from git
146+ if : ${{ !startsWith( github.ref, 'refs/tags/v') }}
147+ run : hatch run build:update-git-versions
162148
163- # - name: update doc links
164- # if: ${{ startsWith( github.ref, 'refs/tags/v') }}
165- # run: poetry run npm run update-doc-links
149+ - name : update doc links
150+ if : ${{ startsWith( github.ref, 'refs/tags/v') }}
151+ run : hatch run build: update-doc-links
166152
167- # - name: package
168- # run: poetry run npm run package
153+ - name : package
154+ run : hatch run build: package
169155
170- # - name: Upload VSCode package
171- # uses: actions/upload-artifact@v3
172- # with:
173- # name: vscode-package
174- # path: dist/robotcode*.vsix
156+ - name : Upload VSCode package
157+ uses : actions/upload-artifact@v3
158+ with :
159+ name : vscode-package
160+ path : dist/robotcode*.vsix
175161
176- # - name: Upload python package
177- # uses: actions/upload-artifact@v3
178- # with:
179- # name: python-package
180- # path: dist/*.tar.gz
162+ - name : Upload python package
163+ uses : actions/upload-artifact@v3
164+ with :
165+ name : python-package
166+ path : dist/*.tar.gz
181167
182- # - name: Upload python wheel package
183- # uses: actions/upload-artifact@v3
184- # with:
185- # name: wheel-package
186- # path: dist/*.whl
168+ - name : Upload python wheel package
169+ uses : actions/upload-artifact@v3
170+ with :
171+ name : wheel-package
172+ path : dist/*.whl
187173
188174 # publish:
189175 # runs-on: ubuntu-latest
0 commit comments