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
This commit is contained in:
Martin Cech 2021-04-28 13:54:09 +02:00 committed by GitHub
parent 4dd520a7c2
commit 760a6e52b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 6 deletions

17
.github/workflows/pr.yml vendored Normal file
View File

@ -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

View File

@ -1,6 +0,0 @@
language: python
python:
- "3.6"
script:
- python verify.py

View File

@ -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.")