Skip to content

Commit

Permalink
Merge pull request #89 from lambdaclass/fix-broken-stuff
Browse files Browse the repository at this point in the history
Update repo to work with newer pipenv/pandas/numpy versions
  • Loading branch information
jrchatruc authored Aug 6, 2024
2 parents aeea18e + 7e58021 commit 8c70ec6
Show file tree
Hide file tree
Showing 6 changed files with 1,850 additions and 718 deletions.
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

0 comments on commit 8c70ec6

Please sign in to comment.