2021-10-12 13:57:41 +01:00
|
|
|
name: CI
|
|
|
|
|
2021-10-12 14:45:20 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
2021-10-12 13:57:41 +01:00
|
|
|
|
|
|
|
jobs:
|
2021-10-13 09:43:40 +01:00
|
|
|
pytest:
|
2021-10-12 14:57:00 +01:00
|
|
|
runs-on: ubuntu-latest
|
2021-10-12 13:57:41 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
2021-10-15 15:51:12 +01:00
|
|
|
python-version: ["3.6", "3.7", "3.8", "3.9"]
|
2021-10-12 13:57:41 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout source
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: |
|
2021-10-12 14:06:36 +01:00
|
|
|
python -m pip install --upgrade pip
|
2021-10-15 15:46:59 +01:00
|
|
|
pip install .
|
2021-10-12 13:57:41 +01:00
|
|
|
pip install pytest
|
2021-10-13 09:46:05 +01:00
|
|
|
pip install pytest-cov
|
2021-10-12 14:06:36 +01:00
|
|
|
|
2021-10-12 13:57:41 +01:00
|
|
|
- name: Run tests
|
2021-10-13 09:46:05 +01:00
|
|
|
run: pytest --cov=pyerrors -v
|