Fetch news #445
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Fetch news' | |
on: | |
schedule: | |
- cron: "0 6 * * *" | |
workflow_dispatch: {} | |
jobs: | |
deploy: | |
name: 'Deploy' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the repository | |
run: git clone -b ${GITHUB_REF##*/} https://github.com/${GITHUB_REPOSITORY} | |
- name: Install native dependencies | |
run: sudo apt install npm pandoc | |
- name: Install Python dependencies | |
run: pip3 install -r requirements.txt | |
working-directory: ./nlp-monitoring | |
- name: Install NLTK packages | |
run: python3 -c 'import nltk; nltk.download("punkt")' | |
- name: Install JS dependencies | |
run: npm install | |
working-directory: ./nlp-monitoring | |
- name: fetch_news.py | |
run: python3 fetch_news.py | |
working-directory: ./nlp-monitoring | |
env: | |
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }} |