-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 873 Bytes
/
test.yaml
File metadata and controls
41 lines (34 loc) · 873 Bytes
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
name: Test
on:
workflow_dispatch:
push:
paths:
- 'iclaw/**'
- 'tests/**'
pull_request:
paths:
- 'iclaw/**'
- 'tests/**'
concurrency:
group: 'test'
cancel-in-progress: false
jobs:
test_job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.13.2
uses: actions/setup-python@v4
with:
python-version: "3.13.2"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage
- name: Run test script
run: |
export PYTHONPATH=$PYTHONPATH:.
python3 -m coverage run -m unittest discover tests
python3 -m coverage report -m iclaw/*.py iclaw/commands/*.py iclaw/tools/*.py