-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (65 loc) · 1.91 KB
/
build.yml
File metadata and controls
74 lines (65 loc) · 1.91 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
if: "!contains(github.event.pull_request.labels.*.name, 'docs-only')"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.10', '3.11', '3.12']
steps:
- uses: compas-dev/compas-actions.build@v4
with:
python: ${{ matrix.python }}
invoke_lint: true
invoke_test: false
- name: Run unit tests
run: |
pytest tests/unit
integration_tests:
if: "!contains(github.event.pull_request.labels.*.name, 'docs-only')"
runs-on: 'ubuntu-latest'
steps:
- name: Set up docker containers
run: |
docker run -d --name nanomq -p 1883:1883 -p 8083:8083 -p 8883:8883 emqx/nanomq:latest
docker run -d --name zenoh --init -p 7447:7447/tcp -p 8000:8000/tcp eclipse/zenoh
docker ps -a
- uses: compas-dev/compas-actions.build@v4
with:
python: '3.11'
invoke_lint: false
invoke_test: false
- name: Install test dependencies
run: |
pip install -r tests/integration/requirements.txt
- name: Run integration tests
run: |
pytest tests/integration
- name: Tear down docker container
run: |
docker rm -f nanomq
docker rm -f zenoh
build-cpython-components:
runs-on: windows-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Create CPython Grasshopper user objects
run: |
invoke build-cpython-ghuser-components
- uses: actions/upload-artifact@v5
with:
name: compas_eve_components
path: src/compas_eve/ghpython/components/ghuser