Skip to content

Commit

Permalink
Break up requirements
Browse files Browse the repository at this point in the history
Requirements now in sections
  run - packages necessary for running onair
  unittest - packages for running unit tests
  lint - packages for linting
  • Loading branch information
asgibson committed Nov 12, 2024
1 parent 281b4fd commit 13f7828
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint black
pip install -r requirements-run.txt
pip install -r requirements-lint.txt
- name: Lint Project
run: pylint onair plugins test
- name: Check Formatting
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest coverage
pip install -r requirements-run.txt
pip install -r requirements-unittest.txt
- name: Test with pytest
run: python -m coverage run --branch --source=onair,plugins -m pytest ./test/
- name: Coverage report
Expand Down
2 changes: 2 additions & 0 deletions requirements-lint.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
black
pylint
3 changes: 3 additions & 0 deletions requirements-run.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy
redis
simdkalman
5 changes: 0 additions & 5 deletions requirements.txt → requirements-unittest.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
numpy
black
pylint
coverage
pytest
pytest-mock
pytest-randomly
redis
simdkalman

0 comments on commit 13f7828

Please sign in to comment.