mirror of
https://github.com/disposable-email-domains/disposable-email-domains.git
synced 2024-11-22 00:28:12 +08:00
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:
parent
4dd520a7c2
commit
760a6e52b4
17
.github/workflows/pr.yml
vendored
Normal file
17
.github/workflows/pr.yml
vendored
Normal 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
|
@ -1,6 +0,0 @@
|
|||||||
language: python
|
|
||||||
python:
|
|
||||||
- "3.6"
|
|
||||||
script:
|
|
||||||
- python verify.py
|
|
||||||
|
|
@ -128,3 +128,5 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# Check if any domains are in both the allowlist and blocklist
|
# Check if any domains are in both the allowlist and blocklist
|
||||||
check_for_intersection(allowlist, blocklist)
|
check_for_intersection(allowlist, blocklist)
|
||||||
|
|
||||||
|
print("All domain entries seem valid.")
|
||||||
|
Loading…
Reference in New Issue
Block a user