Skip to content

Commit

Permalink
Updated requirements files and usage by Actions
Browse files Browse the repository at this point in the history
Multiple requirements files
  -run, only what is necessary to run all provided configs
  -unittest, only the testing packages
  -lint, only the linting packages
  -dev, all requirements for developers (-run, -unittest, -lint)
  no designation, requirements.txt (-run and -unittest)
Worflow files
  lint now uses just -lint
  unit-test uses requirements.txt
  • Loading branch information
asgibson committed Nov 13, 2024
1 parent 13f7828 commit 0457d32
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-run.txt
pip install -r requirements-lint.txt
- name: Lint Project
run: pylint onair plugins test
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-run.txt
pip install -r requirements-unittest.txt
pip install -r requirements.txt
- name: Test with pytest
run: python -m coverage run --branch --source=onair,plugins -m pytest ./test/
- name: Coverage report
Expand Down
4 changes: 4 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# All requirements for OnAIR developers
-r 'requirements-run.txt'
-r 'requirements-unittest.txt'
-r 'requirements-lint.txt'
1 change: 1 addition & 0 deletions requirements-lint.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Requirements for linting code submissions
black
pylint
1 change: 1 addition & 0 deletions requirements-run.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Requirements to run OnAir and the example configs
numpy
redis
simdkalman
1 change: 1 addition & 0 deletions requirements-unittest.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Requirements for unit testing
coverage
pytest
pytest-mock
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Standard requirements to be able to run and test OnAIR
-r 'requirements-run.txt'
-r 'requirements-unittest.txt'

0 comments on commit 0457d32

Please sign in to comment.