Run Regression Tests #10
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 Regression Tests | |
# Controls when the workflow will run | |
on: | |
schedule: | |
- cron: '10 11 * * *' # Set the cron schedule for 2am PST | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Run Regression Tests | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: regression_tests | |
steps: | |
######################################################################### | |
# Environment Setup | |
######################################################################### | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Poetry | |
uses: abatilo/actions-poetry@v3.0.0 | |
with: | |
poetry-version: 1.8.5 | |
######################################################################### | |
# Install & Run Pylint & Flake | |
######################################################################### | |
- name: Poetry Steps | |
run: | | |
poetry install | |
######################################################################### | |
# Setup Token for GSpread | |
######################################################################### | |
- name: Setup Token | |
env: | |
GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }} | |
run: | | |
mkdir -p ~/.config/gspread | |
echo "$GOOGLE_TOKEN" > ~/.config/gspread/service_account.json | |
######################################################################### | |
# Start the Repo Status Updater | |
######################################################################### | |
- name: Run Regression Tests | |
env: | |
CMR_USER: ${{ secrets.CMR_USER }} | |
CMR_PASS: ${{ secrets.CMR_PASS }} | |
SPREADSHEET_ID: ${{ secrets.HITIDE_AWS_SHEET_ID }} | |
run: | | |
poetry run python regression_tests.py | |
pwd | |
ls -alR | |
######################################################################### | |
# Checkout TIG Configuration Repository | |
######################################################################### | |
- name: Checkout TIG Configuration | |
uses: actions/checkout@v4 | |
with: | |
repository: podaac/forge-tig-configuration | |
path: forge-tig-configuration | |
token: ${{ secrets.GH_READ_TOKEN }} | |
######################################################################### | |
# Run TIG in container | |
######################################################################### | |
- name: Setup and Run TIG in Docker | |
uses: docker://python:3.10-slim # Shoud match the lambda docker image version in the tig repo | |
with: | |
entrypoint: /bin/bash | |
args: |- | |
-c " | |
pwd | |
ls -alR | |
# Install TIG | |
pip install podaac-tig==0.13.0 | |
# Change to workspace directory | |
cd regression_tests | |
python run_regression.py --workdir workdir | |
ls -alR | |
" |