Skip to content

Commit 1488319

Browse files
committed
ci: configure tests-on-pr.yml to run without environment.yml
1 parent 62b83e5 commit 1488319

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/tests-on-pr.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,25 @@ jobs:
2828
- name: Initialize miniconda
2929
uses: conda-incubator/setup-miniconda@v3
3030
with:
31-
activate-environment: test
3231
auto-update-conda: true
33-
environment-file: environment.yml
3432
auto-activate-base: false
3533
python-version: ${{ matrix.python-version }}
36-
3734
- name: Conda config
38-
run: >-
39-
conda config --set always_yes yes
40-
--set changeps1 no
41-
35+
run: |
36+
conda config --add channels conda-forge
4237
- name: Install diffpy.srreal and requirements
4338
run: |
44-
conda install --file requirements/conda.txt
45-
conda install --file requirements/test.txt
39+
conda create -n test python=${{ matrix.python-version }} -y
40+
source $(conda info --base)/etc/profile.d/conda.sh
41+
conda activate test
42+
conda install pip -y
43+
conda config --set always_yes yes --set changeps1 no
44+
conda install --file requirements/conda.txt -y
45+
conda install --file requirements/test.txt -y
4646
python -m pip install . --no-deps
4747
4848
- name: Validate diffpy.pdfgui
49-
run: pytest tests
49+
run: |
50+
source $(conda info --base)/etc/profile.d/conda.sh
51+
conda activate test
52+
pytest tests

0 commit comments

Comments
 (0)