This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
Test executor #55
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: Test executor | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on 1 am PST every day | |
schedule: | |
- cron: '0 9 * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
inputs: | |
execution_type: | |
required: true | |
type: choice | |
description: 'What to execute' | |
default: 'Full Execution' | |
options: | |
- Full Execution | |
- Skip Verification | |
- Only with step 5 | |
- Only with step 6 | |
jobs: | |
build: | |
name: Refresh Repos Statuses | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
######################################################################### | |
# Environment Setup | |
######################################################################### | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Update environment | |
run: | | |
pip install -r dependencies_pip.txt | |
######################################################################### | |
# Start the test execution | |
######################################################################### | |
- name: Full Test Execution | |
if: ${{ !contains(inputs.execution_type, 'Only with step 5') && !contains(inputs.execution_type, 'Only with step 6') && !contains(inputs.execution_type, 'Skip Verification') }} | |
run: | | |
python start.py --full | |
- name: Test Execution without verification | |
if: ${{ inputs.execution_type == 'Skip Verification' }} | |
run: | | |
python start.py --skip_verification | |
- name: Test Execution with only step 5 | |
if: ${{ inputs.execution_type == 'Only with step 5' }} | |
run: | | |
python start.py --only5 | |
- name: Test Execution with only step 6 | |
if: ${{ inputs.execution_type == 'Only with step 6' }} | |
run: | | |
python start.py --only6 |