File tree Expand file tree Collapse file tree 5 files changed +143
-18
lines changed Expand file tree Collapse file tree 5 files changed +143
-18
lines changed Original file line number Diff line number Diff line change 50
50
51
51
# Install dependencies
52
52
- if : ${{ steps.release.outputs.release_created == 'true' && steps.cache-dependencies.outputs.cache-hit != 'true' }}
53
- run : poetry install
53
+ run : poetry install --all-extras
54
54
55
55
# Configure basic credentials for PyPI
56
56
- run : poetry config pypi-token.pypi "${{ secrets.PYPI_PASSWORD }}"
Original file line number Diff line number Diff line change @@ -27,22 +27,10 @@ jobs:
27
27
28
28
- id : install-dependencies
29
29
if : ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
30
- run : poetry install
30
+ run : poetry install --all-extras
31
31
32
32
- id : install-jtd-codegen
33
- run : |
34
- # Download and unpack jtd-codegen
35
- jtd_codegen_archive_url=$(curl https://api.github.com/repos/jsontypedef/json-typedef-codegen/releases | jq '.[0].assets.[] | select(.name | test("linux-gnu"))' | jq -r '.browser_download_url')
36
- wget $jtd_codegen_archive_url -O jtd-codegen.zip
37
- unzip jtd-codegen.zip
38
-
39
- # Install jtd-codegen
40
- chmod +x jtd-codegen
41
- mv jtd-codegen .jtd-codegen/jtd-codegen
42
- export PATH=$PATH:$(pwd)/.jtd-codegen
43
-
44
- # Clean up
45
- rm -f jtd-codegen.zip
33
+ run : source ./ci/install-jtd-codegen
46
34
47
35
- run : poetry run poe test jtd_codebuild/tests
48
36
66
54
key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
67
55
68
56
- if : ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
69
- run : poetry install
57
+ run : poetry install --all-extras
70
58
71
59
- run : poetry run poe lint
72
60
90
78
key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
91
79
92
80
- if : ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
93
- run : poetry install
81
+ run : poetry install --all-extras
94
82
95
83
- run : poetry run poe check-format
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Download and unpack jtd-codegen
4
+ jtd_codegen_archive_url=$( curl https://api.github.com/repos/jsontypedef/json-typedef-codegen/releases | jq ' .[0].assets' | jq ' .[] | select(.name | test("linux-gnu"))' | jq -r ' .browser_download_url' )
5
+ wget $jtd_codegen_archive_url -O jtd-codegen.zip
6
+ unzip jtd-codegen.zip
7
+
8
+ # Install jtd-codegen
9
+ chmod +x jtd-codegen
10
+ mkdir -p .jtd-codegen
11
+ mv jtd-codegen .jtd-codegen/jtd-codegen
12
+ echo " $( pwd) /.jtd-codegen" >> $GITHUB_PATH
13
+
14
+ # Clean up
15
+ rm -f jtd-codegen.zip
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ poethepoet = "^0.24.4"
21
21
22
22
[tool .poetry .group .test .dependencies ]
23
23
pytest = " ^7.4.3"
24
+ pydantic = " ^2.6.3"
24
25
25
26
26
27
[tool .poetry .scripts ]
You can’t perform that action at this time.
0 commit comments