Skip to content

Commit

Permalink
Update python-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nnn911 authored Apr 29, 2024
1 parent 068fb30 commit 459ce1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- name: setup mamba
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: ovito_test
mamba-version: "*"
Expand All @@ -36,18 +37,22 @@ jobs:
- name: Install python dependencies conda
if: matrix.os == 'macos-latest'
run: |
mamba activate ovito_test
mamba install -y -c conda-forge pytest
mamba install -y --strict-channel-priority -c https://conda.ovito.org -c conda-forge ovito>=3.9.1
mamba install -y pytorch pytorch -c pytorch -c conda-forge
- name: Install python dependencies conda
if: matrix.os != 'macos-latest'
run: |
mamba activate ovito_test
mamba install -y -c conda-forge pytest
mamba install -y --strict-channel-priority -c https://conda.ovito.org -c conda-forge ovito
mamba install -y pytorch pytorch-cuda=12.1 -c pytorch -c nvidia -c conda-forge
- name: Install python dependencies pip
run: |
mamba activate ovito_test
python -m pip install .
- name: Test with pytest
run: |
mamba activate ovito_test
pytest

0 comments on commit 459ce1c

Please sign in to comment.