2020-09-26 18:17:00 +00:00
|
|
|
name: CI
|
|
|
|
|
2021-07-22 00:10:22 +00:00
|
|
|
on:
|
|
|
|
# Triggers the workflow on push or pull request events but only for the master branch
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
2020-09-26 18:17:00 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-05-20 20:23:56 +00:00
|
|
|
|
|
|
|
basic_install:
|
2020-09-26 18:17:00 +00:00
|
|
|
name: 'pip install'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-05-20 20:13:10 +00:00
|
|
|
|
2020-09-26 18:17:00 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
2021-05-20 20:13:10 +00:00
|
|
|
ref: master
|
|
|
|
|
2020-09-26 18:17:00 +00:00
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2021-05-20 20:13:10 +00:00
|
|
|
python-version: '3.9'
|
|
|
|
|
2020-09-26 18:17:00 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install -e . --upgrade-strategy eager -r requirements.txt
|
2021-05-20 20:13:10 +00:00
|
|
|
|
|
|
|
- name: Run piker cli
|
2020-09-26 18:17:00 +00:00
|
|
|
run: piker
|
2021-05-20 20:13:10 +00:00
|
|
|
|
2021-05-20 20:23:56 +00:00
|
|
|
testing:
|
2021-05-20 21:16:52 +00:00
|
|
|
name: 'test suite'
|
2021-05-20 20:26:19 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-20 20:23:56 +00:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.9'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
2021-05-20 21:13:32 +00:00
|
|
|
run: pip install -U . -r requirements-test.txt -r requirements.txt --upgrade-strategy eager
|
2021-05-20 20:23:56 +00:00
|
|
|
|
|
|
|
- name: Test suite
|
|
|
|
run: pytest tests -rs
|