Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Pytest with uv

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Install dependencies with uv
run: uv sync

- name: Run tests with uv
run: uv run pytest tests
2 changes: 2 additions & 0 deletions tests/test_solc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def get_nested(d, keys, default=None):
break
return d

@pytest.mark.xfail(reason="This test is expected to fail because the solc output does not adhere to the ethdebug format.")
@pytest.mark.parametrize("output_file", output_files)
def test_info(output_file: Path):
with open(output_file, 'r') as f:
Expand All @@ -27,6 +28,7 @@ def test_info(output_file: Path):
model = Info.model_validate(ethdebug_data)
assert model is not None, "Model validation returned None"

@pytest.mark.xfail(reason="This test is expected to fail because the solc output does not adhere to the ethdebug format.")
@pytest.mark.parametrize("output_file", output_files)
def test_program(output_file: Path):
with open(output_file, 'r') as f:
Expand Down