From 044a39a35fd18d50e5857692da78c1bf219a2361 Mon Sep 17 00:00:00 2001 From: Giuseppe Vettigli Date: Wed, 17 Jan 2024 11:46:32 +0000 Subject: [PATCH] Update run_examples.yml --- .github/workflows/run_examples.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/run_examples.yml b/.github/workflows/run_examples.yml index dd9abfe..f1803d8 100644 --- a/.github/workflows/run_examples.yml +++ b/.github/workflows/run_examples.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions -name: Python package +name: Run examlpes on: push: @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: "3.10"] steps: - uses: actions/checkout@v3 @@ -27,17 +27,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install numpy flake8 pycodestyle pytest + python -m pip install numpy flake8 pycodestyle pytest nbval pandas minisom if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 *.py --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 *.py --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Checking style - run: | - pycodestyle *.py - name: Unit testing run: | - pytest minisom.py + pytest --nbval examples/BasicUsage.ipynb