From c4e25d879e7632f65d548e438d016bc7e8f14665 Mon Sep 17 00:00:00 2001 From: Nicholas Tollervey Date: Fri, 13 Sep 2024 14:37:17 +0100 Subject: [PATCH] Update GH actions to node 20 and Python env for PyMinifier. (#2166) * Update GH actions to node 20 and Python env for PyMinifier. * Fix spaces. * Fix test.yml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/prepare-release.yml | 17 ++++++++++++++++- .github/workflows/publish-release.yml | 17 ++++++++++++++++- .github/workflows/publish-snapshot.yml | 17 ++++++++++++++++- .github/workflows/publish-unstable.yml | 17 ++++++++++++++++- 4 files changed, 64 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 56d5ff3c..090fb71b 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -19,7 +19,22 @@ jobs: - name: Install node uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x + + - name: Python venv + run: python -m venv env + + - name: Activate Python + run: source env/bin/activate + + - name: Update pip + run: pip install --upgrade pip + + - name: Install PyMinifier + run: pip install --ignore-requires-python python-minifier + + - name: Install Setuptools + run: pip install setuptools - name: Cache node modules uses: actions/cache@v4 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 0a5052bf..86bcd54e 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -21,7 +21,22 @@ jobs: - name: Install node uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x + + - name: Python venv + run: python -m venv env + + - name: Activate Python + run: source env/bin/activate + + - name: Update pip + run: pip install --upgrade pip + + - name: Install PyMinifier + run: pip install --ignore-requires-python python-minifier + + - name: Install Setuptools + run: pip install setuptools - name: Cache node modules uses: actions/cache@v4 diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index c270fa76..15238ac8 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -25,7 +25,22 @@ jobs: - name: Install node uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x + + - name: Python venv + run: python -m venv env + + - name: Activate Python + run: source env/bin/activate + + - name: Update pip + run: pip install --upgrade pip + + - name: Install PyMinifier + run: pip install --ignore-requires-python python-minifier + + - name: Install Setuptools + run: pip install setuptools - name: Cache node modules uses: actions/cache@v4 diff --git a/.github/workflows/publish-unstable.yml b/.github/workflows/publish-unstable.yml index 2a81b52f..e2a6f0cf 100644 --- a/.github/workflows/publish-unstable.yml +++ b/.github/workflows/publish-unstable.yml @@ -26,7 +26,22 @@ jobs: - name: Install node uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x + + - name: Python venv + run: python -m venv env + + - name: Activate Python + run: source env/bin/activate + + - name: Update pip + run: pip install --upgrade pip + + - name: Install PyMinifier + run: pip install --ignore-requires-python python-minifier + + - name: Install Setuptools + run: pip install setuptools - name: Cache node modules uses: actions/cache@v4