Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 committed Feb 3, 2024
1 parent 6a0253e commit 813fc8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 49 deletions.
49 changes: 1 addition & 48 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,42 +46,6 @@ jobs:
run: |
poetry run flake8 .
unit:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: |
pip install poetry
- name: Cache Poetry virtual environment
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-${{ matrix.python-version }}-
${{ runner.os }}-poetry-
- name: Install Dependencies
run: |
poetry install
- name: Run unit tests
run: |
poetry run python3 test.py tests/unit
integration:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand All @@ -97,10 +61,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Run docker in background
run: |
docker run --detach --rm --name rippled-service -p 6006:6006 --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s transia/hooksv3d-standalone:latest
- name: Install Poetry
run: |
pip install poetry
Expand All @@ -118,14 +78,7 @@ jobs:
run: |
poetry install
- run: npm install -g c2wasm-cli
- run: c2wasm-cli contracts build

- name: Run integration tests
run: |
# Add commands to run integration tests here
poetry run python3 test.py tests/integration
- name: Stop docker container
if: always()
run: docker stop rippled-service
poetry run python3 test.py tests/integration
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Xrpld network generator"
authors = ["Denis Angell <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.9.6"
python = "^3.8"
pyyaml = "^6.0.1"
requests = "^2.31.0"
xrpld-publisher = "^2.0.0"
Expand Down

0 comments on commit 813fc8b

Please sign in to comment.