From 760a6e52b45f188bcf1d075aea0f2c36afad26ff Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Wed, 28 Apr 2021 13:54:09 +0200 Subject: [PATCH] replace travis with gha (#269) * replace travis with gha * install reqs * write a message when check is ok so it can be read easily in CI --- .github/workflows/pr.yml | 17 +++++++++++++++++ .travis.yml | 6 ------ verify.py | 2 ++ 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/pr.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..9eaac49 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,17 @@ +name: validate blocklist entries + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.x' + - run: pip install -r requirements.txt && python verify.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 306b569..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: python -python: - - "3.6" -script: - - python verify.py - diff --git a/verify.py b/verify.py index 2512184..5a0ff43 100644 --- a/verify.py +++ b/verify.py @@ -128,3 +128,5 @@ if __name__ == "__main__": # Check if any domains are in both the allowlist and blocklist check_for_intersection(allowlist, blocklist) + + print("All domain entries seem valid.")