-
Notifications
You must be signed in to change notification settings - Fork 454
64 lines (54 loc) · 1.93 KB
/
Copy pathtest-packages.yml
File metadata and controls
64 lines (54 loc) · 1.93 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: test-packages
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test-npm:
name: npm install (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "20"
- name: install local npm package
# --ignore-scripts skips the postinstall binary download: no GitHub
# release exists for an unmerged PR, and the network fetch/go-install
# fallback is non-deterministic in CI. This validates that the package
# is well-formed and links its bin entry.
run: npm install -g ./npm-package --ignore-scripts
- name: verify bumblebee is on PATH
run: which bumblebee || echo "binary not on PATH (expected if no GitHub release)"
test-pip:
name: pip install (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"
- name: install local pip package
run: pip install ./pypi-package
- name: verify bumblebee entrypoint exists
# We only verify the entrypoint installs and is on PATH. Running
# `bumblebee --help` would force a binary download/go-install, which
# cannot succeed without a published release and is non-deterministic
# in CI.
run: which bumblebee