Update README.md #211
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |