-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
552adc3
commit 6a12fac
Showing
9 changed files
with
207 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# This file is part of tad-multicharge. | ||
# | ||
# SPDX-Identifier: Apache-2.0 | ||
# Copyright (C) 2024 Grimme Group | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
name: Tests (macOS arm) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
paths-ignore: | ||
- "doc*/**" | ||
- "./*.ya?ml" | ||
- "**/*.md" | ||
- "**/*.rst" | ||
|
||
pull_request: | ||
paths-ignore: | ||
- "doc*/**" | ||
- "./*.ya?ml" | ||
- "**/*.md" | ||
- "**/*.rst" | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
main: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
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"] | ||
# only test oldest and newest version of torch | ||
torch-version: ["1.11.0", "2.4.1"] | ||
exclude: | ||
# Check latest versions here: https://download.pytorch.org/whl/torch/ | ||
# | ||
# PyTorch issues: | ||
# 3.11: https://github.com/pytorch/pytorch/issues/86566 | ||
# 3.12: https://github.com/pytorch/pytorch/issues/110436 | ||
# 3.13: https://github.com/pytorch/pytorch/issues/1302496 | ||
# | ||
# PyTorch<2.2 does only support Python<3.12 (all platforms) | ||
- python-version: "3.12" | ||
torch-version: "1.11.0" | ||
- python-version: "3.12" | ||
torch-version: "1.12.1" | ||
- python-version: "3.12" | ||
torch-version: "1.13.1" | ||
- python-version: "3.12" | ||
torch-version: "2.0.1" | ||
- python-version: "3.12" | ||
torch-version: "2.1.2" | ||
# PyTorch<2.0 does only support Python<3.11 (macOS and Windows) | ||
- python-version: "3.11" | ||
torch-version: "1.11.0" | ||
- python-version: "3.11" | ||
torch-version: "1.12.1" | ||
- python-version: "3.11" | ||
torch-version: "1.13.1" | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
defaults: | ||
run: | ||
shell: bash {0} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
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 | ||
|
||
- name: Print TOXENV | ||
run: echo "TOXENV is set to '${{ env.TOXENV }}'." | ||
|
||
- name: Unittests with tox | ||
run: tox -e ${{ env.TOXENV }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.