Skip to content

Commit

Permalink
Added action for automatic testing (#10)
Browse files Browse the repository at this point in the history
* Removed some gitlab references

* added gitignore

* Bug correction and test adjustments from gitlab

* Added workflow for test
  • Loading branch information
ecieren authored Apr 12, 2024
1 parent 306e363 commit a502723
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pytest

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Run tests
run: python -m pytest
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ dependencies = [
"numpy >= 1.19.4",
"pandas >= 1.1.4",
"scipy >= 1.5.4",
"matplotlib >= 3.7.1",
]

[project.optional-dependencies]
doc = ["sphinx", "sphinx_rtd_theme"]
examples = ["matplotlib"]
test = ["pytest", "pylint"]

[tool.setuptools.package-data]
strdcable = ["data/*.csv", "*.ini"]

Expand Down

0 comments on commit a502723

Please sign in to comment.