Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Update data on the CI #26

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/crawl.yml
@@ -0,0 +1,31 @@
name: Crawl law changes

on:
push:
schedule:
- cron: "0 0 * * *"

jobs:
update_lawsgit:
name: Update gesetze.git
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: sudo apt-get install libxml2-utils libxml2-dev libxslt1-dev -y
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: run scrapers
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
./updatelawsgit.py
git add data
git commit -m "Update data"
git push
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
@@ -1,7 +1,7 @@
name: bundestag gesetze tool test CI


on: [push]
on: [push, pull_request]

jobs:
##############################################################################
Expand All @@ -10,7 +10,6 @@ jobs:
test:
name: test
runs-on: ubuntu-latest
#needs: [nothing]
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
Expand Down