Skip to content

e2e tests

e2e tests #608

Workflow file for this run

name: e2e tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
manual:
description: "Trigger the workflow manually"
required: false
schedule:
# CST is UTC-6, so 6:00 AM CST is 12:00 PM (or 12:00) UTC.
# If daylight saving is in effect (CDT, UTC-5), this will run at 7:00 AM CDT.
- cron: "0 12 * * *"
jobs:
build:
name: e2e tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Get Current Required Python Version
id: get-python-versions
run: |
MINIMUM_VERSION=$(grep -oP '__version_minimum_python__ = "\K.*(?=")' leeger/_version.py)
echo "CURRENT_VERSION=$MINIMUM_VERSION" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.CURRENT_VERSION }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
make deps
- name: Build Package
run: python setup.py sdist bdist_wheel
- name: Check Package
run: |
twine check dist/*
- name: Install Package
run: pip install .
- name: Create Temporary Directory
run: echo "TMP_DIR=$(mktemp -d)" >> $GITHUB_ENV
- name: Run Excel Tests
run: |
python e2e/test-excel.py
if [ ! -f "${{ env.TMP_DIR }}/excel.xlsx" ]; then
echo "Contents of Temp Directory:"
ls -l ${{ env.TMP_DIR }}
echo "Excel file not found"
exit 1
fi
env:
TEMP_DIR: ${{ env.TMP_DIR }}