Skip to content

Correct GitHub Actions to run on main branch #284

Correct GitHub Actions to run on main branch

Correct GitHub Actions to run on main branch #284

# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: pytest
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install Python 3 dependencies
run: pip install -r dev-requirements.txt
- name: Run pytest
run: pytest --cov=src -vv
- name: Run coveralls
uses: AndreMiras/coveralls-python-action@develop