You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
745 B
32 lines
745 B
5 years ago
|
name: Python tests
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ master ]
|
||
|
pull_request:
|
||
|
branches: [ master ]
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
name: Run tests on ${{ matrix.os }} with Python ${{ matrix.python }}
|
||
|
strategy:
|
||
|
matrix:
|
||
|
os: [ubuntu-latest, macOS-latest]
|
||
|
python: ['3.8', '3.7']
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Set up Python ${{ matrix.python }}
|
||
|
uses: actions/setup-python@v1
|
||
|
with:
|
||
|
python-version: ${{ matrix.python }}
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
python -m pip install --upgrade pip
|
||
|
pip install pytest
|
||
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||
|
- name: Run tests
|
||
|
run: |
|
||
|
pytest
|