-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (29 loc) · 882 Bytes
/
Copy pathtests.yml
File metadata and controls
38 lines (29 loc) · 882 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
# This file was generated with the assistance of an AI coding tool.
name: Tests
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
pytest:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install test dependencies
run: python -m pip install "ifcopenshell[advanced]" pytest pyparsing
- name: Install the checked-out MVD modules
shell: bash
run: |
package_dir="$(python -c 'import ifcopenshell, pathlib; print(pathlib.Path(ifcopenshell.__file__).parent / "mvd")')"
cp ./*.py "$package_dir/"
- name: Run tests
working-directory: tests
run: python -m pytest .