Add common API calls #150
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: unit_tests | |
on: | |
- pull_request | |
jobs: | |
linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Download files | |
uses: actions/checkout@v3 | |
- name: Create virtual environment | |
run: python -m venv .venv | |
- name: Activate virtual environment | |
run: source .venv/bin/activate | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Install QA framework | |
run: pip install .[unit_testing] | |
- name: Run unit tests | |
run: python -m pytest tests/ --tb=short | |
windows: | |
runs-on: windows-2019 | |
steps: | |
- name: Download files | |
uses: actions/checkout@v3 | |
- name: Create virtual environment | |
run: python -m venv .venv | |
- name: Activate virtual environment | |
run: .venv\Scripts\activate | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Install QA framework | |
run: pip install .[unit_testing] | |
- name: Run unit tests | |
run: python -m pytest tests/ --tb=short |