Skip to content

Commit

Permalink
Merge pull request #51 from Solid-Energy-Systems/workflow
Browse files Browse the repository at this point in the history
Github workflow
  • Loading branch information
d-cogswell authored Mar 25, 2024
2 parents b0b6c84 + d48fd3b commit d03696f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/NewareNDA_pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: NewareNDA regression tests

on: [push, workflow_dispatch]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Test with pytest
run: |
coverage run -m pytest tests
- name: Coveralls
uses: coverallsapp/github-action@v2
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![release](https://img.shields.io/github/v/release/Solid-Energy-Systems/NewareNDA)](https://github.com/Solid-Energy-Systems/NewareNDA/releases)

[![NewareNDA regression tests](https://github.com/Solid-Energy-Systems/NewareNDA/actions/workflows/NewareNDA_pytest.yml/badge.svg)](https://github.com/Solid-Energy-Systems/NewareNDA/actions/workflows/NewareNDA_pytest.yml)
[![Coverage Status](https://coveralls.io/repos/github/Solid-Energy-Systems/NewareNDA/badge.svg?branch=workflow)](https://coveralls.io/github/Solid-Energy-Systems/NewareNDA?branch=workflow)
# NewareNDA

© 2024 Copyright SES AI
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
packages=['NewareNDA'],
scripts=['bin/NewareNDA-cli.py'],
install_requires=['pandas'],
extras_require={'test': ['pytest', 'pyarrow']},
extras_require={'test': ['pytest', 'pyarrow', 'coveralls']},
python_requires='>=3.6',
classifiers=[
"Programming Language :: Python :: 3",
Expand Down
Binary file added tests/nda/neware_reader/new_nda_file.nda
Binary file not shown.
Binary file added tests/reference/new_nda_file.ftr
Binary file not shown.

0 comments on commit d03696f

Please sign in to comment.