diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml index e7ee70a7..85232716 100644 --- a/.github/actions/prepare/action.yml +++ b/.github/actions/prepare/action.yml @@ -20,6 +20,7 @@ runs: uses: actions/setup-python@v4 with: python-version: ${{ inputs.python-version }} + cache: "poetry" - name: Install dependencies run: | poetry install --extras pgsql diff --git a/.github/workflows/regtest.yml b/.github/workflows/regtest.yml index f8ca83a4..56685f1b 100644 --- a/.github/workflows/regtest.yml +++ b/.github/workflows/regtest.yml @@ -26,6 +26,11 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/prepare + with: + python-version: ${{ inputs.python-version }} + poetry-version: ${{ inputs.poetry-version }} + - name: Setup Regtest run: | git clone https://github.com/callebtc/cashu-regtest-enviroment.git regtest @@ -33,11 +38,6 @@ jobs: chmod -R 777 . bash ./start.sh - - uses: ./.github/actions/prepare - with: - python-version: ${{ inputs.python-version }} - poetry-version: ${{ inputs.poetry-version }} - - name: Create fake admin if: ${{ inputs.backend-wallet-class == 'LNbitsWallet' }} run: docker exec cashu-lnbits-1 poetry run python tools/create_fake_admin.py