Skip to content

Commit

Permalink
Merge branch 'main' into model-harmonic-oscillator-conf
Browse files Browse the repository at this point in the history
  • Loading branch information
emptymalei committed Feb 19, 2024
2 parents 8425968 + 4b52f91 commit 716a49e
Show file tree
Hide file tree
Showing 7 changed files with 172 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.10
python-version: "3.10"
- name: Setup Poetry
uses: abatilo/actions-poetry@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
2 changes: 2 additions & 0 deletions hamiltonian_flow/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def foo():
pass
209 changes: 155 additions & 54 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}]
Expand All @@ -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]
Expand Down
8 changes: 8 additions & 0 deletions tests/test_foo.py
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

0 comments on commit 716a49e

Please sign in to comment.