Debian Codegraph @

.github/workflows/CI.yml

raw symbols SCIP
1 name: Test PyCIFRW
2
3 on:
4 push:
5 paths-ignore:
6 - '.github/**'
7 - 'README.md'
8
9 pull_request:
10 paths-ignore:
11 - '.github/**'
12 - 'README.md'
13
14 workflow_dispatch:
15
16 jobs:
17 test:
18 runs-on: ubuntu-latest
19
20 strategy:
21 matrix:
22 python-version: ['3.10', '3.11', '3.12', '3.13']
23 os: [ubuntu-latest, macos13, macos-latest, windows-2022, windows-latest]
24 steps:
25 - name: Checkout code
26 uses: actions/checkout@v4
27
28 - name: Set up Python ${{ matrix.python-version }}
29 uses: actions/setup-python@v5
30 with:
31 python-version: ${{ matrix.python-version }}
32
33 - name: Create derived files
34 run: |
35 cd src; make
36
37 - name: Install dependencies
38 run: |
39 python -m pip install --upgrade pip
40 pip install pytest
41 pip install .
42
43 - name: Check installed contents
44 run: |
45 PKG_PATH=$(python -c "import site, os; print([p for p in site.getsitepackages() if os.path.exists(os.path.join(p, 'CifFile'))][0])")
46 ls -la $PKG_PATH/CifFile
47
48 - name: Get cif core dictionary for tests
49 uses: actions/checkout@v4
50 with:
51 repository: COMCIFS/cif_core
52 path: tests/dictionaries
53 sparse-checkout: |
54 ddl.dic
55 cif_core.dic
56 templ_enum.cif
57 templ_attr.cif
58
59 - name: Run tests
60 run: |
61 pytest TestPyCIFRW.py
62 pytest TestDrel.py