Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update repo to work with newer pipenv/pandas/numpy versions #89

Merged
merged 6 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9.18'
- name: Install pipenv
run: pip install pipenv
- name: Install dependencies
run: make install
- name: Run tests
run: make test
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.DEFAULT_GOAL := help

install: ## Create environment and install dependencies
pipenv --three && pipenv sync --dev
pipenv install && pipenv sync --dev

env: ## Run pipenv shell
pipenv shell
Expand All @@ -18,7 +18,7 @@ test: ## Run tests
pipenv run python -m pytest -v backtester

test_notebook: ## Run jupyter notebook test
pipenv run jupyter nbconvert nbconvert --to notebook --execute --ExecutePreprocessor.timeout=60 \
pipenv run jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=60 \
backtester/examples/backtester_example.ipynb --stdout > /dev/null

help:
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ altair = "*"
jupyter = "*"
pandas-datareader = "*"
pytest = "*"
tables = "*"
pyprind = "*"
pyfolio = "*"
seaborn = "*"

[dev-packages]
yapf = "*"
Expand Down
Loading