Feature/saml login args check (#89) #160
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 and Validate Unit Tests | |
on: | |
push: | |
branches-ignore: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Execute Unit Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 1 | |
matrix: | |
python-version: | |
- 3.8 | |
os: | |
- ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install modules | |
run: | | |
python -m pip install --upgrade requests | |
- name: Install pytest module | |
run: | | |
python -m pip install pytest pytest-mock responses | |
- name: Executes Unit Tests | |
run: python -m tests.test_all | |
- name: Execute pytests | |
run: python -m pytest tests/pytest_*.py | |