From 1fc800754b022cc6efadcf7c0d6e2f690c9e3a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Wed, 3 Apr 2024 16:26:58 -0700 Subject: [PATCH] github: no need to install dependencies when building/deploying --- .github/workflows/build.yaml | 11 +---------- .github/workflows/publish_test.yaml | 11 +---------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 068469986..d5f36687c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -26,15 +26,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.10' - - name: Cache virtual environment - uses: actions/cache@v3 - with: - # We are hashing requirements-dev.txt and requirements-extra.txt which - # contain all dependencies needed to run the tests and examples. - key: venv-${{ runner.os }}-${{ steps.setup_python.outputs.python-version}}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }} - path: .venv - - name: Install system packages - run: sudo apt-get install -y portaudio19-dev - name: Setup virtual environment run: | python -m venv .venv @@ -42,7 +33,7 @@ jobs: run: | source .venv/bin/activate python -m pip install --upgrade pip - pip install -r requirements.txt -r requirements-dev.txt + pip install -r requirements-dev.txt - name: Build project run: | source .venv/bin/activate diff --git a/.github/workflows/publish_test.yaml b/.github/workflows/publish_test.yaml index ab3dc1448..06019fdbc 100644 --- a/.github/workflows/publish_test.yaml +++ b/.github/workflows/publish_test.yaml @@ -23,15 +23,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.10' - - name: Cache virtual environment - uses: actions/cache@v3 - with: - # We are hashing requirements-dev.txt and requirements-extra.txt which - # contain all dependencies needed to run the tests and examples. - key: venv-${{ runner.os }}-${{ steps.setup_python.outputs.python-version}}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }} - path: .venv - - name: Install system packages - run: sudo apt-get install -y portaudio19-dev - name: Setup virtual environment run: | python -m venv .venv @@ -39,7 +30,7 @@ jobs: run: | source .venv/bin/activate python -m pip install --upgrade pip - pip install -r requirements.txt -r requirements-dev.txt + pip install -r requirements-dev.txt - name: Build project run: | source .venv/bin/activate