From d9870bb93acc00afca50bdd91953465c4d91e74b Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Tue, 7 Jan 2025 12:19:00 -0500 Subject: [PATCH 1/2] ci: fix docs workflow to match test workflow --- .github/workflows/docs.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f9b09fb3..b44771ad 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,25 +16,14 @@ jobs: token: ${{ secrets.SGILE_PAT }} submodules: recursive fetch-depth: 0 # fetch all commits/branches - - name: Set up Conda - uses: conda-incubator/setup-miniconda@v3 + - uses: actions/setup-python@v5 with: python-version: "3.10" - miniforge-version: latest - conda-remove-defaults: true - - name: Install libsndfile - run: | - sudo apt-get update - sudo apt-get install -y libsndfile1 + cache: "pip" - name: Install dependencies and package run: | - pip install --upgrade pip CUDA_TAG=cpu pip install -r requirements.torch.txt --find-links https://download.pytorch.org/whl/torch_stable.html - pip install cython - pip install -e . - - name: Install documentation dependencies - run: | - pip install -r docs/requirements.txt + pip install -e . -r docs/requirements.txt - name: Setup doc deploy run: | git config user.name 'github-actions[bot]' From 77be9ef54d956f5da2edede18cc82d99f148a6eb Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Tue, 7 Jan 2025 13:23:03 -0500 Subject: [PATCH 2/2] ci: fix docs part of publish workflow --- .github/workflows/publish.yaml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c03b9f8b..e317992b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -92,25 +92,14 @@ jobs: token: ${{ secrets.SGILE_PAT }} submodules: recursive fetch-depth: 0 # fetch all commits/branches - - name: Set up Conda - uses: conda-incubator/setup-miniconda@v3 + - uses: actions/setup-python@v5 with: python-version: "3.10" - miniforge-version: latest - conda-remove-defaults: true - - name: Install libsndfile - run: | - sudo apt-get update - sudo apt-get install -y libsndfile1 + cache: "pip" - name: Install dependencies and package run: | - pip install --upgrade pip CUDA_TAG=cpu pip install -r requirements.torch.txt --find-links https://download.pytorch.org/whl/torch_stable.html - pip install cython - pip install -e . - - name: Install documentation dependencies - run: | - pip install -r docs/requirements.txt + pip install -e . -r docs/requirements.txt - name: Setup doc deploy run: | git config user.name 'github-actions[bot]'