Create build-push-docker-on-master.yml #58
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
name: Run Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tensorflow==2.12.0 efficientnet==1.1.1 torch==2.4.1 ultralytics==8.3.26 onnx==1.17.0 onnxruntime==1.19.2 | |
pip install -e . | |
- name: Run tests | |
run: python -m unittest discover -s tests -p 'test_*.py' |