Skip to content

Add unit tests and GitHub Actions workflow #1

Add unit tests and GitHub Actions workflow

Add unit tests and GitHub Actions workflow #1

Workflow file for this run

name: Python Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install Tkinter
run: |
sudo apt-get update
sudo apt-get install -y python3-tk
- name: Run tests
run: |
python -m unittest test_typing_speed.py -v