Skip to content

Fixed bug by chaning cell(1,3) to cell (1,2) which resolves #9 #77

Fixed bug by chaning cell(1,3) to cell (1,2) which resolves #9

Fixed bug by chaning cell(1,3) to cell (1,2) which resolves #9 #77

Workflow file for this run

name: continuous-integration
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache python dependencies
id: cache-pip
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: pip-${{ matrix.python-version }}-build-${{ hashFiles('**/setup.json') }}
restore-keys:
pip-${{ matrix.python-version }}-build
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt --no-build-isolation; fi;
pip install wheel --no-build-isolation;
pip install .[pre-commit,tests] --no-build-isolation;
cd tests; python test_dynamics.py; python test_trajectory.py
- name: Run pre-commit & linter
run: |
# pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude ./samos/io/xsf.py
# # 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 --exclude ./samos/io/xsf.py