2020-09-26 18:17:00 +00:00
|
|
|
name: CI
|
|
|
|
|
2022-04-13 01:30:20 +00:00
|
|
|
|
2021-07-22 00:10:22 +00:00
|
|
|
on:
|
|
|
|
# Triggers the workflow on push or pull request events but only for the master branch
|
|
|
|
pull_request:
|
2023-01-10 18:13:52 +00:00
|
|
|
push:
|
2021-07-22 00:10:22 +00:00
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
2020-09-26 18:17:00 +00:00
|
|
|
|
2021-05-20 20:13:10 +00:00
|
|
|
|
2022-04-13 01:30:20 +00:00
|
|
|
jobs:
|
2021-05-20 20:13:10 +00:00
|
|
|
|
2022-11-11 22:58:09 +00:00
|
|
|
# test that we can generate a software distribution and install it
|
|
|
|
# thus avoid missing file issues after packaging.
|
|
|
|
sdist-linux:
|
|
|
|
name: 'sdist'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.10'
|
|
|
|
|
|
|
|
- name: Build sdist
|
|
|
|
run: python setup.py sdist --formats=zip
|
|
|
|
|
|
|
|
- name: Install sdist from .zips
|
|
|
|
run: python -m pip install dist/*.zip
|
|
|
|
|
2021-05-20 20:23:56 +00:00
|
|
|
testing:
|
2022-04-13 01:30:20 +00:00
|
|
|
name: 'install + test-suite'
|
2023-03-09 02:20:41 +00:00
|
|
|
timeout-minutes: 10
|
2021-05-20 20:26:19 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-20 20:23:56 +00:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout
|
2022-04-13 01:30:20 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-05-20 20:23:56 +00:00
|
|
|
|
2023-05-26 20:50:53 +00:00
|
|
|
# elastic only
|
|
|
|
# - name: Build DB container
|
|
|
|
# run: docker build -t piker:elastic dockering/elastic
|
2023-02-21 16:58:04 +00:00
|
|
|
|
2021-05-20 20:23:56 +00:00
|
|
|
- name: Setup python
|
2023-05-26 20:50:53 +00:00
|
|
|
uses: actions/setup-python@v4
|
2021-05-20 20:23:56 +00:00
|
|
|
with:
|
2022-04-12 21:12:07 +00:00
|
|
|
python-version: '3.10'
|
2021-05-20 20:23:56 +00:00
|
|
|
|
2023-05-26 20:50:53 +00:00
|
|
|
# elastic only
|
|
|
|
# - name: Install dependencies
|
|
|
|
# run: pip install -U .[es] -r requirements-test.txt -r requirements.txt --upgrade-strategy eager
|
|
|
|
|
2021-05-20 20:23:56 +00:00
|
|
|
- name: Install dependencies
|
2023-05-26 20:50:53 +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
|