Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/weekly-cc-server-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This tests if the fail2ban filtering on the CC cdx index server is too strict.

name: Weekly CC server check

on:
schedule:
# Every Monday at 9:00 AM UTC
- cron: '0 9 * * 1'
workflow_dispatch: # Allows manual triggering
# pull_request: # Run automatically for PRs

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Get Runner IP
run: |
echo "Runner IP: $(curl -s https://ipinfo.io/ip)"

- name: Install setuptools on python 3.12+
run: |
pip install setuptools

- name: Install cdx_toolkit
run: pip install ".[test]"

- name: Run example
run: |
python examples/iter-and-warc.py