File tree 4 files changed +9
-1
lines changed
4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 28
28
- name : Install dependencies
29
29
run : |
30
30
poetry install
31
+ - name : Ensure pure cbor2 is installed
32
+ run : |
33
+ make ensure-pure-cbor2
31
34
- name : Run unit tests
32
35
run : |
33
36
poetry run pytest --doctest-modules --ignore=examples --cov=pycardano --cov-config=.coveragerc --cov-report=xml
Original file line number Diff line number Diff line change 24
24
- name : Install dependencies
25
25
run : |
26
26
poetry install
27
+ - name : Ensure pure cbor2 is installed
28
+ run : |
29
+ make ensure-pure-cbor2
27
30
- name : Lint with flake8
28
31
run : |
29
32
poetry run flake8 pycardano
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ ensure-pure-cbor2: ## ensures cbor2 is installed with pure Python implementation
34
34
print(f' Using C extension: {using_c_ext}' ); \
35
35
exit(1 if using_c_ext else 0)" || \
36
36
(echo " Reinstalling cbor2 with pure Python implementation..." && \
37
- poetry run pip install --no-binary cbor2 " cbor2==$$ (cat .cbor2_version)" --force-reinstall && \
37
+ poetry run pip uninstall -y cbor2 && \
38
+ CBOR2_BUILD_C_EXTENSION=0 poetry run pip install --no-binary cbor2 " cbor2==$$ (cat .cbor2_version)" --force-reinstall && \
38
39
rm .cbor2_version)
39
40
40
41
help :
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ set -o pipefail
6
6
ROOT=$( pwd)
7
7
8
8
poetry install -C ..
9
+ make ensure-pure-cbor2 -f ../Makefile
9
10
# poetry run pip install ogmios
10
11
11
12
# #########
You can’t perform that action at this time.
0 commit comments