Skip to content

Commit 7b6f852

Browse files
committed
Add GA ci workflow
1 parent e27f363 commit 7b6f852

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This file was generated with the assistance of an AI coding tool.
2+
3+
name: Tests
4+
5+
on:
6+
push:
7+
pull_request:
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
pytest:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
18+
steps:
19+
- name: Check out repository
20+
uses: actions/checkout@v6
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v6
24+
with:
25+
python-version: "3.10"
26+
27+
- name: Install test dependencies
28+
run: python -m pip install "ifcopenshell[advanced]" pytest pyparsing
29+
30+
- name: Install the checked-out MVD modules
31+
shell: bash
32+
run: |
33+
package_dir="$(python -c 'import ifcopenshell, pathlib; print(pathlib.Path(ifcopenshell.__file__).parent / "mvd")')"
34+
cp ./*.py "$package_dir/"
35+
36+
- name: Run tests
37+
working-directory: tests
38+
run: python -m pytest .

0 commit comments

Comments
 (0)