forked from mllam/neural-lam
-
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.
Merge remote-tracking branch 'origin/main' into feature_rank_one_utils
- Loading branch information
Showing
18 changed files
with
799 additions
and
124 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: lint | ||
name: Linting | ||
|
||
on: | ||
# trigger on pushes to any branch, but not main | ||
|
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,45 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
# trigger on pushes to any branch, but not main | ||
push: | ||
branches-ignore: | ||
- main | ||
# and also on PRs to main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
pip install torch-geometric>=2.5.2 | ||
- name: Load cache data | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: data | ||
key: ${{ runner.os }}-meps-reduced-example-data-v0.1.0 | ||
restore-keys: | | ||
${{ runner.os }}-meps-reduced-example-data-v0.1.0 | ||
- name: Test with pytest | ||
run: | | ||
pytest -v -s | ||
- name: Save cache data | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: data | ||
key: ${{ runner.os }}-meps-reduced-example-data-v0.1.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
![Linting](https://github.com/mllam/neural-lam/actions/workflows/pre-commit.yml/badge.svg) | ||
![Automatic tests](https://github.com/mllam/neural-lam/actions/workflows/run_tests.yml/badge.svg) | ||
|
||
<p align="middle"> | ||
<img src="figures/neural_lam_header.png" width="700"> | ||
</p> | ||
|
@@ -279,6 +282,8 @@ pre-commit run --all-files | |
``` | ||
from the root directory of the repository. | ||
|
||
Furthermore, all tests in the ```tests``` directory will be run upon pushing changes by a github action. Failure in any of the tests will also reject the push/PR. | ||
|
||
# Contact | ||
If you are interested in machine learning models for LAM, have questions about our implementation or ideas for extending it, feel free to get in touch. | ||
You can open a github issue on this page, or (if more suitable) send an email to [[email protected]](mailto:[email protected]). |
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.