fix building mock_trainer #623
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] | |
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.7" | |
- name: set up Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: "1.5.0" | |
- name: install curl ssl | |
run: | | |
sudo apt-get update | |
sudo apt-get install libcurl4-openssl-dev libssl-dev | |
- name: install dependencies | |
run: | | |
poetry config virtualenvs.create false --local | |
poetry install | |
- name: test | |
run: | | |
cd learning_loop_node | |
LOOP_HOST=preview.learning-loop.ai LOOP_USERNAME=admin LOOP_PASSWORD=${{ secrets.LEARNING_LOOP_ADMIN_PASSWORD }} pytest -v | |
slack: | |
needs: | |
- pytest | |
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" |