Skip to content

Merge pull request #46 from webis-de/dependabot/npm_and_yarn/src/Fron… #81

Merge pull request #46 from webis-de/dependabot/npm_and_yarn/src/Fron…

Merge pull request #46 from webis-de/dependabot/npm_and_yarn/src/Fron… #81

Workflow file for this run

name: "Python CI"
on: push
jobs:
test-backend:
name: "✔️ Test backend API"
runs-on: ubuntu-20.04
strategy:
matrix:
python-version:
- '3.6'
- '3.8'
steps:
- name: "📥 Check-out"
uses: actions/checkout@v4
- name: "🧰 Install Python"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: "🧰 Install Python requirements"
working-directory: ./src/Backend
run: |
pip install "pipenv>=2020.8.13"
pipenv install
- name: "📥 Download NLTK tools"
working-directory: ./src/Backend
run: |
pipenv run python -m nltk.downloader stopwords
pipenv run python -m nltk.downloader punkt
pipenv run python -m nltk.downloader averaged_perceptron_tagger
- name: "✔️ Test API"
working-directory: ./src/Backend
run: pipenv run python test.py
env:
ES_USERNAME: reader
ES_PASSWORD: reader