-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (54 loc) · 1.53 KB
/
main.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
pull_request:
release:
types:
- created
jobs:
main:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
config:
# - python_version: "2.7"
# tesseract_robotics: false
- python_version: "3.6"
tesseract_robotics: false
- python_version: "3.7"
tesseract_robotics: true
- python_version: "3.8"
tesseract_robotics: true
- python_version: "3.9"
tesseract_robotics: true
- python_version: "3.10"
tesseract_robotics: true
- python_version: "3.11"
tesseract_robotics: true
steps:
- uses: actions/checkout@v3
with:
path: rpi_general_robotics_toolbox_py
- uses: actions/setup-python@v2
with:
python-version: '${{ matrix.config.python_version }}'
- name: pip
run: python -m pip install pytest wheel setuptools
- name: pip tesseract-robotics
if: '${{ matrix.config.tesseract_robotics }}'
run: python -m pip install tesseract-robotics
- name: pip local package
run: pip install .
working-directory: rpi_general_robotics_toolbox_py
- name: pytest
run: python -m pytest
working-directory: rpi_general_robotics_toolbox_py
- name: build wheel
run: python setup.py bdist_wheel
working-directory: rpi_general_robotics_toolbox_py
- name: archive out
uses: actions/upload-artifact@v2
with:
name: 'out'
path: ./**/*.whl