From ba33dd1910d745d23f655d86df9d4903766c58a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 15 Oct 2024 23:54:31 +0900 Subject: [PATCH] fix(ci): pip install through venv --- .github/workflows/checksum.yml | 2 +- .github/workflows/close-issue.yml | 2 +- .github/workflows/pull-format.yml | 7 ++++++- .github/workflows/push-format.yml | 5 +++++ .github/workflows/unitest.yml | 5 +++++ 5 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checksum.yml b/.github/workflows/checksum.yml index 162c43e12..4a92578a7 100644 --- a/.github/workflows/checksum.yml +++ b/.github/workflows/checksum.yml @@ -4,7 +4,7 @@ on: jobs: checksum: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/close-issue.yml b/.github/workflows/close-issue.yml index 32c54d6ae..37e526eb3 100644 --- a/.github/workflows/close-issue.yml +++ b/.github/workflows/close-issue.yml @@ -5,7 +5,7 @@ on: jobs: close-issues: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: issues: write pull-requests: write diff --git a/.github/workflows/pull-format.yml b/.github/workflows/pull-format.yml index 57a783bd9..2617c2f9f 100644 --- a/.github/workflows/pull-format.yml +++ b/.github/workflows/pull-format.yml @@ -8,7 +8,7 @@ jobs: # This workflow closes invalid PR change-or-close-pr: # The type of runner that the job will run on - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: write-all # Steps represent a sequence of tasks that will be executed as part of the job @@ -63,6 +63,11 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 + - name: Create venv + run: | + python3 -m venv .venv + source .venv/bin/activate + - name: Install Black run: pip install "black[jupyter]" diff --git a/.github/workflows/push-format.yml b/.github/workflows/push-format.yml index 15fe6caca..8d332ed67 100644 --- a/.github/workflows/push-format.yml +++ b/.github/workflows/push-format.yml @@ -24,6 +24,11 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 + - name: Create venv + run: | + python3 -m venv .venv + source .venv/bin/activate + - name: Install Black run: pip install "black[jupyter]" diff --git a/.github/workflows/unitest.yml b/.github/workflows/unitest.yml index 77f44c33d..cc2ea0630 100644 --- a/.github/workflows/unitest.yml +++ b/.github/workflows/unitest.yml @@ -25,6 +25,11 @@ jobs: run: | sudo apt-get install -y portaudio19-dev python3-pyaudio + - name: Create venv + run: | + python3 -m venv .venv + source .venv/bin/activate + - name: Test Install run: pip install .