Skip to content

Commit

Permalink
Fix tests (stefan-jansen#4)
Browse files Browse the repository at this point in the history
- update GHA test workflow
- fix E731, E501
- update wheels workflow
- skip p39-pandas10 to avoid build from src
- add coveralls/coverage
- add badges
- update conda
  • Loading branch information
stefan-jansen authored Sep 8, 2021
1 parent 5d6326b commit 7db3e5d
Show file tree
Hide file tree
Showing 16 changed files with 1,073 additions and 997 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/conda_package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Alphalens conda distribution
name: conda

on: [ push ]
on: workflow_dispatch

jobs:
build_wheels:
Expand All @@ -15,10 +15,8 @@ jobs:
strategy:
fail-fast: false
matrix:
# os: [ macos-latest, windows-latest, ubuntu-latest ]
os: [ ubuntu-latest ]
# python: [ '3.7', '3.8' ]
python: [ '3.9' ]
os: [ macos-latest, windows-latest, ubuntu-latest ]
python: [ '3.7', '3.8' ,'3.9' ]

steps:
- name: Checkout alphalens-reloaded
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/distribution.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
run: |
pip install -U pip wheel
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple alphalens-reloaded[test]
nosetests alphalens.tests
pytest alphalens/tests
7 changes: 6 additions & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ jobs:
run: |
flake8
- name: Unittests with tox & nose
- name: Unittests with tox & pytest
run: |
tox
- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@
</a>
</p>

[![CI Tests](https://github.com/stefan-jansen/alphalens-reloaded/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/stefan-jansen/alphalens-reloaded/actions/workflows/unit_tests.yml)
![PyPI](https://img.shields.io/pypi/v/alphalens-reloaded)
![Conda](https://img.shields.io/conda/pn/ml4t/alphalens-reloaded)
[![Tests](https://github.com/stefan-jansen/alphalens-reloaded/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/stefan-jansen/alphalens-reloaded/actions/workflows/unit_tests.yml)
[![PyPI Wheels](https://github.com/stefan-jansen/alphalens-reloaded/actions/workflows/distribution.yml/badge.svg)](https://github.com/stefan-jansen/alphalens-reloaded/actions/workflows/distribution.yml)
[![Alphalens conda distribution](https://github.com/stefan-jansen/alphalens-reloaded/actions/workflows/conda_package.yml/badge.svg)](https://github.com/stefan-jansen/alphalens-reloaded/actions/workflows/conda_package.yml)
[![Coverage Status](https://coveralls.io/repos/github/stefan-jansen/alphalens-reloaded/badge.svg?branch=main)](https://coveralls.io/github/stefan-jansen/alphalens-reloaded?branch=main)
![GitHub issues](https://img.shields.io/github/issues/stefan-jansen/alphalens-reloaded)
![PyPI - License](https://img.shields.io/pypi/l/alphalens-reloaded)
![Discourse users](https://img.shields.io/discourse/users?server=https%3A%2F%2Fexchange.ml4trading.io%2F)
![Twitter Follow](https://img.shields.io/twitter/follow/ml4trading?style=social)

Alphalens is a Python library for performance analysis of predictive
(alpha) stock factors. Alphalens works great with the
Expand Down
Loading

0 comments on commit 7db3e5d

Please sign in to comment.