Skip to content

Commit 238cf12

Browse files
committed
Add GitHub Actions for automated testing
1 parent c695778 commit 238cf12

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.11'
16+
17+
- name: Cache pip packages
18+
uses: actions/cache@v3
19+
with:
20+
path: ~/.cache/pip
21+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
22+
restore-keys: |
23+
${{ runner.os }}-pip-
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r requirements.txt
29+
pip install -r requirements-dev.txt
30+
31+
- name: Make IfcConvert executable
32+
run: |
33+
chmod +x src/bim2fem/bim2glb/ifc_convert/linux/IfcConvert
34+
35+
- name: Run tests
36+
run: |
37+
pytest tests/ -v --tb=short

0 commit comments

Comments
 (0)