Build test_data into Docker image #43
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
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: invenio-cli install | |
- name: start services | |
run: invenio-cli services start | |
- name: run tests | |
run: pipenv run pytest |