Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinfriede committed Sep 16, 2024
1 parent 7b60f79 commit e03188e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/macos-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
os: [macos-14]
# Python 3.8/3.9 is not on macos-latest (macos-14-arm64)
# https://github.com/actions/setup-python/issues/696
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11"]
# only test oldest and newest version of torch
torch-version: ["1.11.0", "2.4.0"]
torch-version: ["1.11.0", "2.4.1"]
exclude:
# Check latest versions here: https://download.pytorch.org/whl/torch/
#
Expand Down Expand Up @@ -87,10 +87,10 @@ jobs:
python3 -m pip install tox
- name: Determine TOXENV
run: echo "TOXENV=py$(echo ${{ matrix.python-version }} | tr -d '.')-torch$(echo ${{ matrix.torch-version }} | tr -d '.')" >> $GITHUB_ENV
run: echo "TOXENV=py$(echo ${{ matrix.python-version }} | tr -d '.')-torch$(echo ${{ matrix.torch-version }} | tr -d '.')-nolibcint" >> $GITHUB_ENV

- name: Print TOXENV
run: echo "TOXENV is set to '${{ env.TOXENV }}'."

- name: Unittests with tox
run: tox -e ${{ env.TOXENV }}-nolibcint
run: tox -e ${{ env.TOXENV }}
4 changes: 2 additions & 2 deletions .github/workflows/macos-x86.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ jobs:
python3 -m pip install tox
- name: Determine TOXENV
run: echo "TOXENV=py$(echo ${{ matrix.python-version }} | tr -d '.')-torch$(echo ${{ matrix.torch-version }} | tr -d '.')" >> $GITHUB_ENV
run: echo "TOXENV=py$(echo ${{ matrix.python-version }} | tr -d '.')-torch$(echo ${{ matrix.torch-version }} | tr -d '.')-nolibcint" >> $GITHUB_ENV

- name: Print TOXENV
run: echo "TOXENV is set to '${{ env.TOXENV }}'."

- name: Unittests with tox
run: tox -e ${{ env.TOXENV }}-nolibcint
run: tox -e ${{ env.TOXENV }}
6 changes: 3 additions & 3 deletions .github/workflows/ubuntu-nolibcint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
torch-version: ["2.3.1"]
torch-version: ["2.4.1"]
exclude:
# Check latest versions here: https://download.pytorch.org/whl/torch/
#
Expand Down Expand Up @@ -79,13 +79,13 @@ jobs:
python3 -m pip install tox
- name: Determine TOXENV
run: echo "TOXENV=py$(echo ${{ matrix.python-version }} | tr -d '.')-torch$(echo ${{ matrix.torch-version }} | tr -d '.')" >> $GITHUB_ENV
run: echo "TOXENV=py$(echo ${{ matrix.python-version }} | tr -d '.')-torch$(echo ${{ matrix.torch-version }} | tr -d '.')-nolibcint" >> $GITHUB_ENV

- name: Print TOXENV
run: echo "TOXENV is set to '${{ env.TOXENV }}'."

- name: Unittests with tox
run: tox -e ${{ env.TOXENV }}-nolibcint
run: tox -e ${{ env.TOXENV }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
os: [ubuntu-latest]
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
torch-version: ["2.0.1", "2.1.2", "2.2.2", "2.3.1"]
torch-version: ["2.0.1", "2.1.2", "2.2.2", "2.3.1", "2.4.1"]
exclude:
# Check latest versions here: https://download.pytorch.org/whl/torch/
#
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
os: [windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
# only test oldest and newest version of torch
torch-version: ["1.11.0", "2.4.0"]
torch-version: ["1.11.0", "2.4.1"]
exclude:
# Check latest versions here: https://download.pytorch.org/whl/torch/
#
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
python3 -m pip install tox
- name: Determine TOXENV
run: echo "TOXENV=py$(echo ${{ matrix.python-version }} | tr -d '.')-torch$(echo ${{ matrix.torch-version }} | tr -d '.')" >> $GITHUB_ENV
run: echo "TOXENV=py$(echo ${{ matrix.python-version }} | tr -d '.')-torch$(echo ${{ matrix.torch-version }} | tr -d '.')-nolibcint" >> $GITHUB_ENV

- name: Print TOXENV
run: echo "TOXENV is set to '${{ env.TOXENV }}'."
Expand Down
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
min_version = 4.0
isolated_build = True
envlist =
py38-torch{1110,1121,1131,201,212,222,231,240}-{nolibcint,libcint},
py39-torch{1110,1121,1131,201,212,222,231,240}-{nolibcint,libcint},
py310-torch{1110,1121,1131,201,212,222,231,240}-{nolibcint,libcint},
py311-torch{1131,201,212,222,231,240}-{nolibcint,libcint},
py312-torch{222,231,240}-{nolibcint,libcint}
py38-torch{1110,1121,1131,201,212,222,231,240,241}-{nolibcint,libcint},
py39-torch{1110,1121,1131,201,212,222,231,240,241}-{nolibcint,libcint},
py310-torch{1110,1121,1131,201,212,222,231,240,241}-{nolibcint,libcint},
py311-torch{1131,201,212,222,231,240,241}-{nolibcint,libcint},
py312-torch{222,231,240,241}-{nolibcint,libcint}

[testenv]
setenv =
Expand All @@ -44,6 +44,7 @@ deps =
torch230: torch==2.3.0
torch231: torch==2.3.1
torch240: torch==2.4.0
torch241: torch==2.4.1

extras =
tox
Expand Down

0 comments on commit e03188e

Please sign in to comment.