Skip to content

Update README.md

Update README.md #213

# This workflow will install Python dependencies, run tests, generate coverage
# report and upload it to codecov.
# For more information, see:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Run tests with coverage
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov codecov
pip install -r requirements.txt
- name: Install adapt
run: |
pip install -e .
- name: Test with pytest
run: |
pytest -vv --cov=adapt
- name: Upload codecov
run: |
codecov