Skip to content

Commit

Permalink
Run tests gl-client-py in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikDeSmedt committed Sep 1, 2023
1 parent 90cea56 commit c748a19
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
cd libs/gl-client-py
poetry build --format=sdist
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -90,6 +91,14 @@ jobs:
pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
python3 -c "import glclient;tls=glclient.TlsConfig();signer=glclient.Signer(b'\x00'*32,'bitcoin', tls);print(repr(tls));print(signer.version())"
- name: Install testing dependencies
if: matrix.target == 'x86_64'
run: pip3 install pytest libs/gl-testing

- name: Run tests
if: matrix.target == 'x86_64'
run: python3 -m pytest libs/gl-client-py/tests

- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -134,6 +143,14 @@ jobs:
pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
python3 -c "import glclient;tls=glclient.TlsConfig();signer=glclient.Signer(b'\x00'*32,'bitcoin', tls);print(repr(tls));print(signer.version())"
- name: Install testing dependencies
run: |
pip3 install pytest libs/gl-testing
- name: Run tests
if: matrix.target == 'x86_64'
run: python3 -m pytest libs/gl-client-py/tests

- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -175,6 +192,14 @@ jobs:
# pip install libs\gl-client-py\dist\gl_client*.whl --force-reinstall
# python3 -c "import glclient;tls=glclient.TlsConfig();signer=glclient.Signer(b'\x00'*32,'bitcoin', tls);print(repr(tls));print(signer.version())"

# - name: Install testing dependencies
# run: |
# pip3 install pytest


# - name: Run tests
# run: python3 -m pytest libs/gl-client-py/tests

- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit c748a19

Please sign in to comment.