Skip to content

Add factored WP

Add factored WP #49

Workflow file for this run

name: Pytest
# Run only on pushes to main branch and to pull requests into main branch.
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3
# - name: Switch to Current Branch
# run: git checkout ${{ env.BRANCH }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests_requirements.txt
sudo apt-get install libmpfr-dev libmpfr-doc
sudo Rscript -e 'install.packages("rmgarch", repos="https://cloud.r-project.org")'
# pip install -e .
# Coverage report is both printed to the console and saved as an XML file.
- name: Run unit tests
run: |
python -m pytest --cov=./fcest --cov-report=term --cov-report=xml --import-mode=append ./tests