-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (34 loc) · 1.3 KB
/
pip_install_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: pip install PyTASER
on:
workflow_run:
workflows: ["Release and publish"]
branches: [main]
types:
- completed # only test when new release has been deployed to PyPI
jobs:
build-linux:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10']
name: Python ${{ matrix.python-version }} pip install
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sleep 10m # wait 10 minutes for PyPI to update with the new release
python -m pip install --upgrade pip
pip install pytaser # install only from PyPI
pip install pytaser[tests]
- name: Test
run: |
pytest tests/test_generator.py # test generator
pytest --mpl tests/test_plotter.py # test plots
# pytest --mpl-generate-path=tests/data_gaas/remote_baseline tests/test_plotter.py # generate output plots
# to run the following image comparison tests and see relative differences, use the CLI
# pytest --mpl --mpl-generate-summary=html tests/test_plotter.py