fix: ensure typing works with Python 3.8 #527
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
- "**.md" | |
- ".vscode/**" | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
# we have to use 3.7.1 to get around openssl issues | |
# TODO: add 3.7 once xrpl-py has been updated | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
fail-fast: false | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Load cached .local | |
uses: actions/cache@v3 | |
with: | |
path: /home/runner/.local | |
key: dotlocal-${{ matrix.python-version }}-${{ hashFiles('.github/workflows') }} | |
- name: Install poetry | |
run: | | |
curl -sSL https://install.python-poetry.org/ | python - | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Install Python + Retrieve Poetry dependencies from cache | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ matrix.python-version }}" | |
cache: "poetry" | |
- name: Display Python version | |
run: | | |
python -c "import sys; print(sys.version)" | |
- name: Install poetry dependencies | |
run: poetry install | |
- name: Pull images from docker | |
run: | | |
docker pull legleux/rippled-xbridge-test | |
docker pull legleux/xbridge_witnessd-test | |
- name: Run tests | |
id: runTests | |
run: | | |
poetry run coverage run -m pytest -xsvv tests | |
poetry run coverage report | |
env: | |
RIPPLED_EXE: docker | |
WITNESSD_EXE: docker | |
XCHAIN_CONFIG_DIR: /home/runner/work/xbridge-config | |
- name: Debug Test Failure (Chain Outputs) | |
if: always() && steps.runTests.outcome == 'failure' | |
run: | | |
echo "start of locking_chain logs" | |
cat $XCHAIN_CONFIG_DIR/locking_chain/debug.log | |
echo "start of issuing_chain logs" | |
cat $XCHAIN_CONFIG_DIR/issuing_chain/debug.log | |
env: | |
XCHAIN_CONFIG_DIR: /home/runner/work/xbridge-config | |
- name: Debug Test Failure (Witness Outputs) | |
if: always() && steps.runTests.outcome == 'failure' | |
run: | | |
cat $XCHAIN_CONFIG_DIR/witness0/witness.json | |
echo "start of witness0 logs" | |
cat $XCHAIN_CONFIG_DIR/witness0/witness.log | |
echo "start of witness1 logs" | |
cat $XCHAIN_CONFIG_DIR/witness1/witness.log | |
echo "start of witness2 logs" | |
cat $XCHAIN_CONFIG_DIR/witness2/witness.log | |
echo "start of witness3 logs" | |
cat $XCHAIN_CONFIG_DIR/witness3/witness.log | |
echo "start of witness4 logs" | |
cat $XCHAIN_CONFIG_DIR/witness4/witness.log | |
env: | |
XCHAIN_CONFIG_DIR: /home/runner/work/xbridge-config |