-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from westonplatter/features/cicd
setup github action for running tests
- Loading branch information
Showing
5 changed files
with
233 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip # doesn't work with pyproject.toml? | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e '.[test]' | ||
- name: Test with unittest | ||
run: | | ||
python tests/test_runner.py | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
from setuptools import setup, find_packages | ||
|
||
|
||
|
||
setup(name='fypy', | ||
version='0.0.1', | ||
description='Financial Quant model calibration and option pricing', | ||
long_description='Financial Quant model calibration and option pricing', | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 3.7', | ||
'Topic :: Scientific/Engineering ', | ||
"Operating System :: OS Independent", | ||
], | ||
keywords='quant option-pricing calibration fit levy stochastic-volatility', | ||
url='https://github.com/jkirkby3/fypy', | ||
author='Justin Lars Kirkby', | ||
author_email='[email protected]', | ||
license='MIT', | ||
packages=find_packages(where="fypy"), | ||
python_requires=">=3.7", | ||
install_requires=[ | ||
'numpy', | ||
], | ||
include_package_data=True, | ||
zip_safe=False) | ||
setup( | ||
name='fypy', | ||
version='0.0.1', | ||
description='Financial Quant model calibration and option pricing', | ||
long_description='Financial Quant model calibration and option pricing', | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Topic :: Scientific/Engineering ', | ||
"Operating System :: OS Independent", | ||
], | ||
keywords='quant option-pricing calibration fit levy stochastic-volatility', | ||
url='https://github.com/jkirkby3/fypy', | ||
author='Justin Lars Kirkby', | ||
author_email='[email protected]', | ||
license='MIT', | ||
packages=find_packages(), | ||
python_requires=">=3.7", | ||
install_requires=[ | ||
"matplotlib", | ||
"numpy", | ||
"python-dateutil", | ||
"scipy", | ||
"py_lets_be_rational>=1.0.1", | ||
"pandas", | ||
"requests-cache", | ||
"yfinance", | ||
], | ||
extras_require={ | ||
"test": [] | ||
}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
) |