add github workflow
This commit is contained in:
parent
e5121d4e28
commit
cfd636401e
1 changed files with 22 additions and 0 deletions
22
.github/workflows/tests.yml
vendored
Normal file
22
.github/workflows/tests.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Run Python Tests
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- python
|
||||
pull_request:
|
||||
branches:
|
||||
- python
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install dependencies
|
||||
run: python -m pip install --upgrade pip pytest
|
||||
- name: Run tests with pytest
|
||||
run: pytest tests.py
|
||||
Loading…
Add table
Reference in a new issue