Skip to content

Commit

Permalink
Merge pull request #748 from mrariden/gh_actions
Browse files Browse the repository at this point in the history
adjust test_and_deploy.yml
  • Loading branch information
carsen-stringer committed Jul 11, 2023
2 parents 869f160 + 3043a0f commit 51fd202
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,26 @@ on:
- main
workflow_dispatch:

jobs:
jobs:
test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
fail-fast: true
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-activate-base: true
activate-environment: ""
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
# auto-activate-base: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
Expand All @@ -52,9 +56,9 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ python =
3.8: py38
3.9: py39
3.10: py310
fail_on_no_env = True

[gh-actions:env]
PLATFORM =
Expand All @@ -26,6 +27,8 @@ passenv =
DISPLAY XAUTHORITY
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
PYVISTA_OFF_SCREEN
CONDA_EXE
CONDA
extras = gui,distributed
conda_deps =
pytest
Expand All @@ -46,3 +49,4 @@ conda_deps =
pytest
pytorch
linux,windows: cudatoolkit=11.3

0 comments on commit 51fd202

Please sign in to comment.