-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 841 Bytes
/
Copy pathtest_install.yml
File metadata and controls
28 lines (28 loc) · 841 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
name: test_install
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
test_install:
runs-on: ubuntu-latest
env:
TERM: "linux"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
- run: pip install --upgrade pip
- run: pip install -r requirements.txt
- run: sudo python3 install.py 1
# Verify the hackingtool entrypoint is on PATH
- run: which hackingtool
# Smoke test: launch and immediately quit (99)
- name: "Smoke test: launch and quit"
run: echo -e "99\n" | hackingtool || true
# Navigate into first category and back out
- name: "Navigation test: enter category 1, quit"
run: echo -e "1\n99\n99\n" | hackingtool || true