Skip to content

Add github workflows #1

Add github workflows

Add github workflows #1

Workflow file for this run

name: Tests python 3.10
on:
workflow_call:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
tests-with-coverage:
name: Run Python Tests with coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -e . -r requirements/tests.txt
- name: Run tests with coverage
run: |
pytest --cov=. --cov-report=term --cov-report=xml:coverage.xml --color=yes
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.xml