From d27be821983bc1c70c48ebc814ac60a56682787b Mon Sep 17 00:00:00 2001 From: 0xPxt Date: Tue, 15 Oct 2024 09:48:13 +0200 Subject: [PATCH] Python venv for guidelines enforcer --- .github/workflows/guidelines_enforcer.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/guidelines_enforcer.yml b/.github/workflows/guidelines_enforcer.yml index 5b6fb33..087cc5a 100644 --- a/.github/workflows/guidelines_enforcer.yml +++ b/.github/workflows/guidelines_enforcer.yml @@ -19,7 +19,27 @@ on: pull_request: jobs: + setup_and_install: + name: Setup Python and Install Dependencies + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Create and activate virtual environment + run: | + python -m venv venv + source venv/bin/activate + - name: Install dependencies + run: | + pip install --upgrade pip + make deps + guidelines_enforcer: - if: github.event.repository.private == false name: Call Ledger guidelines_enforcer + needs: setup_and_install uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_guidelines_enforcer.yml@v1 + with: + python-version: '3.10' \ No newline at end of file