CI Runner #6
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: CI Runner | |
on: | |
workflow_dispatch: | |
inputs: | |
status_url: | |
description: 'URL endpoint for status to be posted to' | |
required: true | |
type: string | |
jobs: | |
test-model: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update status | |
run: sh .github/scripts/update_status.sh ${{ inputs.status_url }} "Starting testing" | |
- name: Install dependencies | |
run: | | |
sh .github/scripts/update_status.sh ${{ inputs.status_url }} "Installing dependencies" | |
echo "Installing dependencies" | |
python -m pip install --upgrade pip | |
python -m pip install flake8 pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Additional Steps | |
run: | | |
sh .github/scripts/update_status.sh ${{ inputs.status_url }} "Running additional steps" | |
echo "Running additional steps..." | |
sleep | |
echo "Done" | |
- name: Main testing | |
run: | | |
sh .github/scripts/update_status.sh ${{ inputs.status_url }} "Running main testing" | |
echo "Running main testing" | |
sleep 30 | |
echo "Done" | |
sh .github/scripts/update_status.sh ${{ inputs.status_url }} "Testing complete" | |
- name: Publish within S3 | |
run: | | |
sh .github/scripts/update_status.sh ${{ inputs.status_url }} "Publishing" | |
echo "Somehow doing publising workflow 🤔" | |
sleep 30 | |
echo "Done" | |
sh .github/scripts/update_status.sh ${{ inputs.status_url }} "Publishing complete" |