This repository has been archived by the owner on Nov 4, 2023. It is now read-only.
Adds tests #1
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 Tests | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10 | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt -r requirements-dev.txt | ||
- name: Run tests | ||
run: | | ||
echo ">> Running all test cases" | ||
python3 -m pytest -s tests | ||
env: | ||
# Set your environment variables here, if they are sensitive, use secrets. | ||
# Example: | ||
# MY_ENV_VAR: ${{ secrets.MY_ENV_VAR }} |