Skip to content

Merge pull request #85 from NizarBousselmi/master #437

Merge pull request #85 from NizarBousselmi/master

Merge pull request #85 from NizarBousselmi/master #437

Workflow file for this run

name: Tests
on:
workflow_dispatch:
pull_request:
branches:
- 'master'
- 'develop'
push:
branches:
- 'master'
- 'develop'
create:
branches:
- 'master'
tags:
- '**'
jobs:
linux:
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, 'no ci')"
strategy:
max-parallel: 5
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
# include:
# - os: ubuntu-20.04
# python-version: '3.6'
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage
- name: Install PEPit
run: |
pip install -e .
- name: Run tests and generate report
run: |
coverage run -m unittest tests/test_*
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
# pep8:
# runs-on: ubuntu-latest
# if: "!contains(github.event.head_commit.message, 'no pep8')"
# strategy:
# max-parallel: 4
# matrix:
# python-version: [3.8]
#
# steps:
# - uses: actions/checkout@v1
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v1
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install flake8
# - name: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 PEPit tests --count --max-line-length=127 --statistics