Skip to content

Commit

Permalink
Added pytest CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbmorgan committed Oct 29, 2024
1 parent 4b2783e commit 713ec04
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
15 changes: 11 additions & 4 deletions .github/workflows/pytest.yml → .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
# strategy:
# matrix:
# python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -32,4 +32,11 @@ jobs:
- name: Install the project dependencies
run: poetry install --with=dev
- name: Run the tests
run: pytest tests
run: pytest tests --cov=dfttools --cov-report xml

# TODO when approved for the maurergroup organisation
# - name: Coveralls GitHub Action
# uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# parallel: true # Enable parallel support for Coveralls if needed
File renamed without changes.
File renamed without changes.
33 changes: 31 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "GPL-3.0"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10"
python = "<=3.10,<3.13"
numpy = "^1.26.4"
scipy = "^1.13.0"
ase = "^3.22.1"
Expand All @@ -28,6 +28,7 @@ pyright = "^1.1.373"
ptpython = "^3.0.26"
pytest = "^8.2.0"
pytest-cov = "^5.0.0"
coveralls = "^4.0.1"

[tool.poetry.group.docs]
optional = true
Expand Down

0 comments on commit 713ec04

Please sign in to comment.