add conditional logic for cluster_context #27
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
--- | |
# Unit test GitHub Action configuration file | |
name: UnitTests | |
on: | |
- pull_request | |
jobs: | |
preview: | |
name: UnitTest | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ['3.10'] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry pytest==6.2.5 apache-airflow==2.4.3 apache-airflow-providers-cncf-kubernetes==4.4.0 pendulum==2.1.2 tenacity==8.3.0 | |
poetry install --no-root | |
- name: Run tests with pytest | |
run: | | |
if [ -d tests ]; then python -m pytest tests -vv; fi |