markur4 push; Setup env, run tests, upload coverage #5
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
name: test coverage | |
run-name: ${{ github.actor }} ${{ github.event_name }}; Setup env, run tests, upload coverage | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Setup environment, run tests, upload coverage | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install requirements | |
run: pip install -r requirements.txt | |
- name: Install plotastic | |
run: pip install git+https://github.com/markur4/plotastic.git | |
- name: Install development tools | |
run: pip install pytest pytest-cov | |
- name: Run tests and collect coverage | |
run: pytest tests --cov=src/plotastic --cov-report=xml | |
- name: Upload coverage reports to Codecov with GitHub Action | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |