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]' 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]'