Skip to content

Commit dbadd23

Browse files
authored
Use conda env for PR test-map build (#544)
1 parent 29f3727 commit dbadd23

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,23 @@ jobs:
4646
4747
- name: Build test map on cache miss
4848
if: steps.restore-map.outputs.cache-hit != 'true'
49+
uses: mamba-org/setup-micromamba@v2.0.7
50+
with:
51+
environment-file: ./environment.yml
52+
init-shell: bash
53+
create-args: >-
54+
--verbose
55+
python=3.11
56+
matplotlib=3.9
57+
cache-environment: true
58+
cache-downloads: false
59+
60+
- name: Generate test map on cache miss
61+
if: steps.restore-map.outputs.cache-hit != 'true'
62+
shell: bash -el {0}
4963
run: |
5064
echo "Test map cache miss; generating map from tests."
51-
python -m pip install --upgrade pip
52-
pip install -e .[tests] coverage pytest pytest-cov pytest-xdist
65+
pip install --no-build-isolation --no-deps .
5366
mkdir -p .ci
5467
pytest -q --tb=short --disable-warnings -n 0 -p pytest_cov \
5568
--cov=ultraplot --cov-branch --cov-context=test --cov-report= \

0 commit comments

Comments
 (0)