Skip to content

use lazy formatting #1008

use lazy formatting

use lazy formatting #1008

Workflow file for this run

name: Run Tests
on: [push]
jobs:
pytest_3_8:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: "1.5.0"
- name: install test dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev libssl-dev jpeginfo
- name: install dependencies
run: |
poetry config virtualenvs.create false --local
poetry install
- name: test_general
run: |
LOOP_HOST=preview.learning-loop.ai LOOP_USERNAME=admin LOOP_PASSWORD=${{ secrets.LEARNING_LOOP_ADMIN_PASSWORD }} pytest learning_loop_node/tests/general -v
- name: test_detector
run: |
LOOP_HOST=preview.learning-loop.ai LOOP_USERNAME=admin LOOP_PASSWORD=${{ secrets.LEARNING_LOOP_ADMIN_PASSWORD }} pytest learning_loop_node/tests/detector -v
- name: test_mock_detector
run: |
LOOP_HOST=preview.learning-loop.ai LOOP_USERNAME=admin LOOP_PASSWORD=${{ secrets.LEARNING_LOOP_ADMIN_PASSWORD }} pytest mock_detector -v
pytest_3_11:
needs:
- pytest_3_8
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
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.5.0"
- name: install test dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev libssl-dev jpeginfo
- name: install dependencies
run: |
poetry config virtualenvs.create false --local
poetry install
- name: test_annotator
run: |
LOOP_HOST=preview.learning-loop.ai LOOP_USERNAME=admin LOOP_PASSWORD=${{ secrets.LEARNING_LOOP_ADMIN_PASSWORD }} pytest learning_loop_node/tests/annotator -v
- name: test_trainer
run: |
LOOP_HOST=preview.learning-loop.ai LOOP_USERNAME=admin LOOP_PASSWORD=${{ secrets.LEARNING_LOOP_ADMIN_PASSWORD }} pytest learning_loop_node/tests/trainer -v
- name: test_mock_trainer
run: |
LOOP_HOST=preview.learning-loop.ai LOOP_USERNAME=admin LOOP_PASSWORD=${{ secrets.LEARNING_LOOP_ADMIN_PASSWORD }} pytest mock_trainer -v
slack:
needs:
- pytest_3_8
- pytest_3_11
if: always() # also execute when pytest fails
runs-on: ubuntu-latest
steps:
- name: Determine if we need to notify
uses: Jimdo/should-i-notify-action@main
id: should_notify
with:
needs_context: ${{ toJson(needs) }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Slack workflow notification
if: steps.should_notify.outputs.should_send_message == 'yes'
uses: Gamesight/slack-workflow-status@master
with:
repo_token: ${{ secrets.GIT_HUB_TOKEN }}
slack_webhook_url: ${{ secrets.SLACK_DEEPLEARNING_CI_WEBHOOK }}
channel: "deeplearning-ci"
name: "Learning Loop Node"