Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix docs actions workflow #6

Merged
merged 12 commits into from
Feb 19, 2024
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
Loading