Skip to content

πŸš‘ Fixes an error in the generation stop criteria #36

πŸš‘ Fixes an error in the generation stop criteria

πŸš‘ Fixes an error in the generation stop criteria #36

Workflow file for this run

name: Coverage
on:
push:
branches: "**" # push to any branch
pull_request:
branches: "**" # push to any branch
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
check-latest: false
update-environment: true
allow-prereleases: false
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
pip install flake8 pytest coverage coveralls
pip install -r requirements.txt
- 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 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run coverage and send to coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coverage run --source=digneapy -m pytest tests/
coveralls --service=github