mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-06 07:47:53 +10:00
Fix CI: create tests/out dir, fix archivebox add cmd, revert setup.sh
- test-parallel.yml: mkdir -p tests/out before pytest --basetemp (fixes FileNotFoundError in chrome test fixture) - debian.yml: fix archivebox add command (--parser url_list removed in 0.9.x), remove || true so failures are caught - setup.sh: revert apt section to always use pip install, not .deb https://claude.ai/code/session_01Vx1EsNrNySgsc8Y67dGzCn
This commit is contained in:
2
.github/workflows/debian.yml
vendored
2
.github/workflows/debian.yml
vendored
@@ -152,7 +152,7 @@ jobs:
|
||||
|
||||
- name: Test archivebox add
|
||||
run: |
|
||||
sudo -u archivebox bash -c 'cd /tmp/archivebox-test && /opt/archivebox/venv/bin/archivebox add --parser url_list "https://example.com"' || true
|
||||
sudo -u archivebox bash -c 'cd /tmp/archivebox-test && /opt/archivebox/venv/bin/archivebox add "https://example.com"'
|
||||
|
||||
- name: Verify systemd service file exists
|
||||
run: |
|
||||
|
||||
1
.github/workflows/test-parallel.yml
vendored
1
.github/workflows/test-parallel.yml
vendored
@@ -115,4 +115,5 @@ jobs:
|
||||
|
||||
- name: Run test - ${{ matrix.test.name }}
|
||||
run: |
|
||||
mkdir -p tests/out
|
||||
uv run pytest -xvs "${{ matrix.test.path }}" --basetemp=tests/out --ignore=archivebox/pkgs
|
||||
|
||||
14
bin/setup.sh
14
bin/setup.sh
@@ -127,18 +127,8 @@ if which apt-get > /dev/null; then
|
||||
sudo apt-get install -y git python3 python3-pip python3-venv wget curl yt-dlp ffmpeg git nodejs npm ripgrep
|
||||
sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb libgbm-dev || sudo apt-get install -y chromium || sudo apt-get install -y chromium-browser || true
|
||||
echo
|
||||
echo "[+] Downloading and installing ArchiveBox .deb package..."
|
||||
ARCH="$(dpkg --print-architecture)"
|
||||
# Get the latest release .deb URL from GitHub API (filename includes version)
|
||||
DEB_URL="$(curl -fsSL https://api.github.com/repos/ArchiveBox/ArchiveBox/releases/latest \
|
||||
| grep -o "\"browser_download_url\": \"[^\"]*_${ARCH}\.deb\"" \
|
||||
| head -1 | cut -d'"' -f4)" || true
|
||||
if [ -n "$DEB_URL" ]; then
|
||||
curl -fsSL "$DEB_URL" -o /tmp/archivebox.deb && sudo apt install -y /tmp/archivebox.deb && rm -f /tmp/archivebox.deb
|
||||
else
|
||||
echo "[!] Could not find .deb download URL, falling back to pip install..."
|
||||
pip install --upgrade archivebox yt-dlp
|
||||
fi
|
||||
echo "[+] Installing ArchiveBox python dependencies using pip3..."
|
||||
sudo python3 -m pip install --upgrade --ignore-installed archivebox yt-dlp
|
||||
# On Mac:
|
||||
elif which brew > /dev/null; then
|
||||
echo "[+] Installing ArchiveBox using Homebrew..."
|
||||
|
||||
Reference in New Issue
Block a user