Skip to content

Merge pull request #66 update Actions to v4, temporarily pause flake8… #26

Merge pull request #66 update Actions to v4, temporarily pause flake8…

Merge pull request #66 update Actions to v4, temporarily pause flake8… #26

Workflow file for this run

name: DCA tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9"]
steps:
- name: Test DCA
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
python -m pip install flake8 codecov pytest-cov sphinx_rtd_theme
python -m pip install -e .
- name: Lint with flake8
run: |
python -m flake8 src/dca tests --exit-zero
- name: Test with pytest
run: |
python -m pytest -sv --cov=./ tests
- name: Build docs
run: |
sphinx-build -W -b html docs/source docs/build
- name: Codecov
run: |
python -m codecov