Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
loco-philippe committed May 14, 2024
2 parents b7bee0f + 5ca7115 commit ca5b906
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/python-package.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
paths:
- 'ci/**'
- '.github/**'
- 'docs/**'
- 'example/**'
- 'tab_analysis/**'

jobs:
build:
Expand All @@ -17,29 +20,27 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
env: [""]
include:
# Minimum python version:
- env: "env-analysis"

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

- name: Install
run: |
python -m pip install --upgrade pip
pip install flake8
#python -m pip install flake8
# if [ -f requirements.txt ]; then pip install -r requirements.txt
pip install -r ./ci/requirements.txt
- name: Lint with flake8
- name: Lint
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: Test with unittest
- name: Run tests
run: |
python -m unittest discover -s ./tests -p 'tests_*.py'

0 comments on commit ca5b906

Please sign in to comment.