Skip to content

fix : added merge group support + action.yml for github action (#129) #212

fix : added merge group support + action.yml for github action (#129)

fix : added merge group support + action.yml for github action (#129) #212

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
pip install -U pytest pytest-cov pytest-repeat
pip install -U flake8 flake8-blind-except flake8-builtins flake8-class-newline flake8-comprehensions flake8-deprecated flake8-docstrings flake8-import-order flake8-quotes pep8-naming pylint
pip install -U mypy
- name: Run tests
run: |
python -m pytest --cov=dco_check --cov-branch --cov-report=xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage data
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true