-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (37 loc) · 1.04 KB
/
ci.yaml
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
name: CI
on: [pull_request, push, workflow_dispatch]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11"]
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install python libraries
run: |
pip install -r requirements_dev.txt
pip install pyyaml
pip list
- name: Mosquitto MQTT Broker in GitHub Actions
uses: Namoshek/mosquitto-github-action@v1
with:
version: '1.6'
- name: Create pioreactor folders and env
run: |
mkdir -p .pioreactor/storage
mkdir -p /tmp/pioreactor_cache/
mv .env.example .env
- name: Run tests
run: |
pytest tests/ -vv --timeout 600 --random-order --durations 15
env:
TESTING: 1
TMPDIR: /tmp/