Skip to content

Commit

Permalink
🚇🩹 Setup docs env same as on RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand committed Mar 1, 2025
1 parent 5f3bedf commit 365899d
Showing 1 changed file with 8 additions and 30 deletions.
38 changes: 8 additions & 30 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,11 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4

- name: Setup conda
uses: s-weigand/setup-conda@v1
- name: Setup docs env same as on RTD
uses: mamba-org/setup-micromamba@v1
with:
conda-channels: conda-forge
activate-conda: false

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install dependencies
run: |
conda install -y pandoc
python -m pip install -U pip wheel
python -m pip install ".[docs]"
environment-file: docs/environment.yml
cache-environment: true

- name: Show installed dependencies
run: pip freeze
Expand All @@ -63,22 +52,11 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4

- name: Setup conda
uses: s-weigand/setup-conda@v1
- name: Setup docs env same as on RTD
uses: mamba-org/setup-micromamba@v1
with:
conda-channels: conda-forge
activate-conda: false

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install dependencies
run: |
conda install -y pandoc
python -m pip install -U pip wheel
python -m pip install ".[docs]"
environment-file: docs/environment.yml
cache-environment: true

- name: Show installed dependencies
run: pip freeze
Expand Down

0 comments on commit 365899d

Please sign in to comment.