Workflow file for this run
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
# Workflow to run unit tests on pull requests that change KeyCloakAuthenticator. | |
# Sets up python, installs requirements-dev.txt, and runs pytest | |
on: | |
pull_request: | |
paths: | |
- KeyCloakAuthenticator/** | |
jobs: | |
check_unit_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version-file: '.python-version' | |
- name: Install testing dependencies | |
working-directory: KeyCloakAuthenticator/ | |
run: | | |
# Install dependencies required by the package | |
pip install -e . | |
# Install dependencies for testing framework | |
pip install -r requirements-dev.txt | |
- name: Run Unit tests | |
working-directory: KeyCloakAuthenticator/ | |
run: pytest |