Merge pull request #650 from uccser/dependabot/github_actions/github/… #258
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 suite | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
# Quotes are neccesary otherwise it tries to get Python 3.1 | |
python-version: [3.8, 3.9, '3.10', 3.11] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r requirements-dev.txt | |
- name: Lint with flake8 | |
run: | | |
flake8 . --show-source --statistics | |
- name: Test suite | |
run: | | |
coverage run --rcfile=.coveragerc -m verto.tests.start_tests | |
coverage xml -i | |
coverage report -m --skip-covered | |
- name: Code Coverage | |
uses: codecov/[email protected] |