Create test.yml

This commit is contained in:
JG
2020-11-06 17:29:13 +08:00
committed by GitHub
parent 385ab28829
commit d69a0eced7

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

@@ -0,0 +1,27 @@
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run unit tests
run: |
pytest