diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..4d8f015 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,38 @@ +name: CI +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: '1 7 * * *' + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python: [3.9, 3.14] + + steps: + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + - name: Checkout + uses: actions/checkout@v4 + - name: Install dependencies + run: | + pip install -r requirements.txt + - name: Run tests + run: | + python tests/unit_tests.py -v + + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: psf/black@stable diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4b6420c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +mistlib +numpy \ No newline at end of file diff --git a/setup.py b/setup.py index 427e9c5..a25d4e2 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,12 @@ +import os from setuptools import setup +path = os.path.dirname(os.path.realpath(__file__)) +requirement_path = os.path.join(path, "requirements.txt") +requires = [] +with open(requirement_path) as f: + requires = f.read().splitlines() + setup( name='ramenlib', version='0.1.0', @@ -9,9 +16,7 @@ author_email='dewittsj@ornl.gov', license='ORNL Internal Software - Currently unlicensed', packages=['ramenlib'], - install_requires=[ 'mistlib', - "numpy" - ], + install_requires=requires, classifiers=[ 'Development Status :: 1 - Planning',