-
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 branch 'main' into model-harmonic-oscillator-conf
- Loading branch information
Showing
7 changed files
with
172 additions
and
61 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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
tests: | ||
strategy: | ||
matrix: | ||
python-version: [3.9,3.10] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -27,7 +27,7 @@ jobs: | |
run: poetry install --with docs,test | ||
- name: Build coverage file | ||
run: | | ||
pytest --cache-clear --cov=app tests/ > pytest-coverage.txt | ||
pytest --cache-clear --cov=hamiltonian_flow tests/ > pytest-coverage.txt | ||
- name: Comment coverage | ||
uses: coroo/[email protected] | ||
build-n-publish: | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
build: | ||
strategy: | ||
matrix: | ||
python-version: [3.9, "3.10"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -37,6 +37,6 @@ jobs: | |
run: poetry install --with docs | ||
- name: Build coverage file | ||
run: | | ||
poetry run pytest --cache-clear --cov=app tests/ > pytest-coverage.txt | ||
poetry run pytest --cache-clear --cov=hamiltonian_flow tests/ > pytest-coverage.txt | ||
- name: Comment coverage | ||
uses: coroo/[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def foo(): | ||
pass |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "hamiltonian_flow" | ||
version = "0.0.1" | ||
description = "Dataset of simple physical systems." | ||
authors = ["LM <[email protected]>", ""] | ||
authors = ["LM <[email protected]>", "cmp0xff <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
packages = [{include = "hamiltonian_flow"}] | ||
|
@@ -15,7 +15,7 @@ pandas = ">=2.0.0,<=2.2.0" | |
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = "^8.0.1" | ||
|
||
pytest-cov = "^4.1.0" | ||
|
||
|
||
[tool.poetry.group.docs.dependencies] | ||
|
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,8 @@ | ||
import hamiltonian_flow | ||
|
||
class TestFoo: | ||
def test_foo(self): | ||
try: | ||
hamiltonian_flow.foo() | ||
except Exception as e: | ||
raise e |