Debian Codegraph @

.github/workflows/build.yml

raw
1 name: Build
2
3 # build the project whenever the configuration is changed
4
5 on:
6 workflow_dispatch:
7 pull_request:
8 paths:
9 - 'README.md' # check markdown is valid
10 - 'MANIFEST.in' # check packaging
11 - 'pyproject.toml' # check build config
12 - 'setup.cfg' # check deps and project config
13 - '.gitignore'
14 - '.github/workflows/build.yml'
15
16 concurrency:
17 group: ${{ github.workflow }}-${{ github.ref }}
18 cancel-in-progress: true
19
20 defaults:
21 run:
22 shell: bash -leo pipefail {0}
23
24 env:
25 FORCE_COLOR: 2
26 PIP_PROGRESS_BAR: off
27
28 jobs:
29 test:
30 runs-on: ${{ matrix.os }}
31 timeout-minutes: 10
32 strategy:
33 fail-fast: false
34 matrix:
35 os: ['ubuntu-latest', 'macos-latest']
36 python: ['3.12', '3']
37 steps:
38 - name: Checkout
39 uses: actions/checkout@v5
40
41 - name: Setup Python
42 uses: mamba-org/setup-micromamba@v2
43 with:
44 cache-environment: true
45 post-cleanup: 'all'
46 environment-name: cylc-build
47 create-args: >-
48 python=${{ matrix.python }}
49
50 - name: Build
51 uses: cylc/release-actions/build-python-package@v1
52
53 - name: Inspect
54 run: |
55 unzip -l dist/*.whl | tee files
56 grep -E 'cylc_flow.*.dist-info/.*COPYING' files
57 grep 'cylc/flow/py.typed' files
58 grep 'cylc/flow/etc' files
59 grep 'cylc/flow/etc/cylc-completion.bash' files