-
Notifications
You must be signed in to change notification settings - Fork 0
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
e6a1462
commit 56a145d
Showing
4 changed files
with
59 additions
and
14 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,43 @@ | ||
name: Unit tests | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.12.2] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
|
||
- name: install Opencv dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgl1-mesa-glx | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Set PYTHONPATH | ||
run: | | ||
echo "::add-path::src" | ||
echo "::set-env name=PYTHONPATH::src" | ||
echo "PYTHONPATH=src" >> $GITHUB_ENV | ||
- name: Run tests | ||
env: | ||
SKIP_BENCHMARK: 1 | ||
run: | | ||
python -m pytest tests |
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 |
---|---|---|
|
@@ -79,3 +79,5 @@ venv.bak/ | |
# Editor | ||
.idea | ||
.vscode | ||
|
||
.pre-commit-config.yaml |
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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
inputs==0.5 | ||
numpy==1.26.4 | ||
opencv-python==4.9.0.80 | ||
packaging==23.2 | ||
python-can==4.3.1 | ||
pywin32==306 | ||
typing_extensions==4.10.0 | ||
wrapt==1.16.0 | ||
|
||
typing~=3.7.4.3 | ||
matplotlib~=3.8.3 | ||
scipy=1.12.0 | ||
scipy==1.12.0 | ||
pre-commit==3.6.2 | ||
pytest==8.1.1 |
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