Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Refactor to improve modularity and reduce code duplication #126

Refactor to improve modularity and reduce code duplication

Refactor to improve modularity and reduce code duplication #126

Workflow file for this run

name: Python test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: python test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- name: check out hyperdrive
uses: actions/checkout@master
with:
repository: delvtech/hyperdrive
ref: "v0.0.16"
path: "./hyperdrive"
ssh-key: ${{ secrets.HYPERDRIVE_ACCESS_KEY }}
# NOTE: This is needed to ensure that hyperdrive-wrappers builds correctly.
- name: install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
token: ${{ secrets.GITHUB_TOKEN }}
- name: setup pip
run: python -m pip install --upgrade pip && python -m pip install --upgrade pytest
- name: install pyperdrive
run: python -m pip install crates/pyperdrive
- name: install requirements
run: python -m pip install -r requirements.txt
- name: run pytest
run: python -m pytest system_tests