ci: test action added

This commit is contained in:
Emad Rad 2023-11-18 15:58:42 +03:30 committed by Muhammad Faraz Maqsood
parent 71e988b3ee
commit ed0935da3d

22
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Run tests
on:
pull_request:
branches: [master]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Upgrade pip
run: python -m pip install --upgrade pip setuptools
- name: Install dependencies
run: |
pip install 'tutor[dev]>=16.0.0,<17.0.0'
- name: Test lint, types, and format
run: make test