-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82fc3c5
commit 02f879a
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters