add SA conditional logic to basic_kube_op and tidy repo #8
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@v2 | |
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 | |
poetry install --no-root | |
- name: Run tests with pytest | |
run: | | |
if [ -d tests ]; then pytest tests -vv; fi |