Skip to content

Commit 1b813c1

Browse files
committed
test: modify github workflow for testing
1 parent 879ffd0 commit 1b813c1

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,20 @@ jobs:
3030
pip install build
3131
echo "github.ref:"
3232
echo "$GITHUB_REF"
33-
run: python -m build
34-
- name: Publish package
35-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
33+
pip install -e .
34+
- name: Generate SensorThings model (OData)
35+
run: |
36+
python -m frost_sta_client.odata_codegen.install_model_simple
37+
- name: Upload generated model as artifact
38+
uses: actions/upload-artifact@v4
3639
with:
37-
user: __token__
38-
password: ${{ secrets.PYPI_API_TOKEN }}
40+
name: generated-model
41+
path: |
42+
./**
43+
- name: Build package
44+
run: python -m build
45+
# - name: Publish package
46+
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
47+
# with:
48+
# user: __token__
49+
# password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)