diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 835730c15..68a6cee13 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -17,24 +17,21 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} -# - name: Cache venv -# id: cache-venv -# uses: actions/cache@v3 -# env: -# cache-name: venv -# with: -# path: jmvenv -# key: ${{ runner.os }}-${{ matrix.python-version }}-${{ env.cache-name }}-${{ hashFiles('requirements/*.txt', 'install.sh', '*/setup.py') }} + - name: Cache venv + id: cache-venv + uses: actions/cache@v3 + env: + cache-name: venv + with: + path: jmvenv + key: ${{ runner.os }}-${{ matrix.python-version }}-${{ env.cache-name }}-${{ hashFiles('requirements/*.txt', 'install.sh', '*/setup.py') }} - name: Setup joinmarket + virtualenv -# if: steps.cache-venv.outputs.cache-hit != 'true' + if: steps.cache-venv.outputs.cache-hit != 'true' run: | - sed -i.bak 's/-e //g' requirements/base.txt - sed -i.bak 's/-e //g' requirements/gui.txt ./install.sh --develop --with-qt - ./jmvenv/bin/pip install -r requirements/testing.txt ./jmvenv/bin/python -m pip install --upgrade pip - name: Lint with flake8 - run: ./jmvenv/bin/flake8 -v src scripts + run: ./jmvenv/bin/flake8 -v src - name: Cache bitcoind uses: actions/cache@v3 env: