Skip to content

Do we need full invenio-cli install for tests in ci? #30

Do we need full invenio-cli install for tests in ci?

Do we need full invenio-cli install for tests in ci? #30

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
jobs:
qa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- uses: pre-commit/[email protected]
test:
needs: qa
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: "3.9"
cache: "pipenv"
- name: install pipenv and invenio-cli
run: pip install pipenv invenio-cli
- name: setup project virtual environment
run: pipenv install --dev
- name: start services
run: invenio-cli services setup --no-demo-data
- name: run tests
run: pipenv run pytest