Skip to content

Merge pull request #449 from Lumiwealth/add-code-coverage #432

Merge pull request #449 from Lumiwealth/add-code-coverage

Merge pull request #449 from Lumiwealth/add-code-coverage #432

Workflow file for this run

name: LumiBot CI/CD
on: [pull_request]
jobs:
LintAndTest:
runs-on: ubuntu-latest
timeout-minutes: 20
environment: unit-tests
env:
AIOHTTP_NO_EXTENSIONS: 1
POLYGON_API_KEY: ${{secrets.POLYGON_API_KEY}} # Required for Polygon API BackTests
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: pip
- name: Install dependencies
run: |
echo "Set AIOHTTP_NO_EXTENSIONS=$AIOHTTP_NO_EXTENSIONS so that aiohttp doesn't try to install C extensions"
python -m pip install --upgrade pip
pip install requests
pip install -r requirements_dev.txt
# Setup.py was not working for some reason, reverted to using requirements.txt again
# python setup.py install
- name: Run Linter
run: |
# Remove -e flag to fail the run if issues are found
ruff check . -e
- name: Run Unit Tests
run: |
coverage run
coverage report
coverage html
- name: Python Coverage Comment
uses: py-cov-action/[email protected]

Check failure on line 36 in .github/workflows/cicd.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cicd.yaml

Invalid workflow file

You have an error in your yaml syntax on line 36