-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests as continuous integration with GitHub Action (#110)
* fix approaching first row when outside of field * more robust approach to first row * run tests on every push * try updating pythonpath * more analysis * fix syntax error * more robust comparision * cleanup * formatting
- Loading branch information
Showing
4 changed files
with
42 additions
and
8 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,26 @@ | ||
name: Run Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
pytest: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.11" | ||
- name: set up Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: "1.2.2" | ||
- name: install dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
pip install pytest pytest-asyncio | ||
- name: run pytests | ||
env: | ||
PYTHONPATH: ${{ github.workspace }} | ||
run: pytest |
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,4 +1,12 @@ | ||
from . import automations, hardware, interface, localization, log_configuration, vision | ||
from .system import System | ||
|
||
__all__ = ['automations', 'hardware', 'interface', 'localization', 'vision', 'log_configuration', 'System'] | ||
__all__ = [ | ||
'automations', | ||
'hardware', | ||
'interface', | ||
'localization', | ||
'vision', | ||
'log_configuration', | ||
'System', | ||
] |
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
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