This repository has been archived by the owner on May 2, 2024. It is now read-only.
fix calc open short #429
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: Python test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
detect-changes: | |
uses: ./.github/workflows/check_diff.yml | |
with: | |
pattern: ^crates/hyperdrivepy | |
test: | |
needs: detect-changes | |
# Run only if changes are detected | |
if: needs.detect-changes.outputs.changed == 'true' | |
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: "v1.0.1" | |
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: install requirements | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade -r requirements.txt | |
python -m pip install --upgrade -r requirements-dev.txt | |
- name: install hyperdrivepy | |
run: python -m pip install crates/hyperdrivepy | |
- name: run pytest | |
run: python -m pytest . |