From 15786684173fd12ccbc3fb55611ea4382c1c8da3 Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Fri, 22 Mar 2024 14:52:08 -0500 Subject: [PATCH] fix install step for pytest workflow --- .github/workflows/pytest.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 6cedd19..482bb9c 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -26,18 +26,20 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.8 - uses: actions/setup-python@v5 - with: - python-version: 3.8 - - # Used by ci_test.sh - - name: Install dependencies - run: | - python setup.py install - pip install pytest - pip install solc-select - - name: Run Tests - run: | - pytest tests + - uses: actions/checkout@v4 + - name: Set up Python 3.8 + uses: actions/setup-python@v5 + with: + python-version: 3.8 + cache: "pip" + cache-dependency-path: setup.py + + + - name: Install dependencies + run: | + pip install ".[test]" + solc-select use latest --always-install + + - name: Run Tests + run: | + pytest tests