Skip to content

Commit

Permalink
Update run_examples.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JustGlowing authored Jan 17, 2024
1 parent 2e01153 commit 044a39a
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/run_examples.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 044a39a

Please sign in to comment.