Skip to content

Commit

Permalink
add ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonifatius94 authored Jan 4, 2024
1 parent 82fc3c5 commit 02f879a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
# clone the source code containing the package version generation script
- name: Checkout source code
uses: actions/checkout@v2
with:
submodules: true

# make sure python is set up properly
- name: Install Python (with dependencies)
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install pip dependencies
run: |
python -m pip install pip --upgrade
python -m pip install wheel==0.37.1 setuptools==59.6.0 pytest pylint
python -m pip install -r ./requirements.txt
- name: Register modules under test
run: python -m pip install .

- name: Run tests
run: python -m pytest tests

- name: Run linter
run: python -m pylint pysocialforce
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ good-names=n,B,ax,b,e,f,f_aB,F0,F_ab,F_aB,F,grad_r_aB,i,n,nx,ny,xy,r,r_aB,U,u0,V
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-whitelist=numpy
fail-under=9.0
min-similarity-lines=10
ignored-modules=pygame

[TYPECHECK]

Expand Down

0 comments on commit 02f879a

Please sign in to comment.