Debian Codegraph @

.github/workflows/build.yaml

raw symbols SCIP
1 name: Linux Build
2
3 on:
4 workflow_dispatch:
5 pull_request:
6 types:
7 - opened
8 - synchronize
9 - reopened
10
11 jobs:
12 build:
13
14 runs-on: ubuntu-latest
15 strategy:
16 matrix:
17 python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
18
19 steps:
20 - uses: actions/checkout@v4
21 - name: Set up Python ${{ matrix.python-version }}
22 uses: actions/setup-python@v5
23 with:
24 python-version: ${{ matrix.python-version }}
25 - name: Install dependencies
26 run: |
27 python -m pip install --upgrade pip
28 pip install numpy wheel build
29 - name: Build extension
30 run: |
31 python --version
32 python -c "import struct; print(struct.calcsize('P') * 8)"
33 python -m build
34 pip install .
35 pip list
36 cd .. && python -c "import skfmm; print(skfmm.__version__)"
37 - name: Run skfmm tests
38 run: |
39 cd .. && python -c "import skfmm, sys; sys.exit(skfmm.test())"
40 - uses: actions/upload-artifact@v4
41 with:
42 name: linux-artifacts-py-${{ matrix.python-version }}
43 path: dist/*
44 retention-days: 5
45
46 merge:
47 name: Merge artifacts
48 needs: [build]
49 runs-on: ubuntu-latest
50 steps:
51 - name: Checkout code
52 uses: actions/checkout@v4
53 - uses: actions/download-artifact@v4
54 with:
55 pattern: linux-*
56 merge-multiple: true
57 path: dist
58
59 - uses: actions/upload-artifact@v4
60 with:
61 name: linux-artifacts-merged
62 path: dist