Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ci pipeline #2

Merged
merged 4 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading