diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5de778f --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/tests/test_solc.py b/tests/test_solc.py index 7aca091..837deb6 100644 --- a/tests/test_solc.py +++ b/tests/test_solc.py @@ -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: @@ -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: