created github workflow
This commit is contained in:
parent
cd9188dc66
commit
21f5374007
1 changed files with 36 additions and 0 deletions
36
.github/workflows/main.yml
vendored
Normal file
36
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [ '3.6', '3.7', '3.8', 'pypy3' ]
|
||||
|
||||
name: Python ${{ matrix.python-version }}
|
||||
|
||||
steps:
|
||||
# Checks out a copy of your repository on the machine
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v1
|
||||
|
||||
# Setup python
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
architecture: x64
|
||||
|
||||
# Install dependencies
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r .\requirements.txt
|
||||
|
||||
# Run pytests
|
||||
- name: Run pytests
|
||||
run: |
|
||||
pytest tests/ --showlocals --verbose
|
||||
Loading…
Add table
Add a link
Reference in a new issue