Skip to content

Commit

Permalink
Add tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-a committed Mar 13, 2024
1 parent 02a732e commit 9e21344
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,28 @@ jobs:
steps:
- uses: actions/checkout@v3
- 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"
- name: install system dependencies
run: sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl
- 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 setup --no-demo-data
- name: run tests
run: pipenv run pytest
build-and-publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: qa
needs: test
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
Expand Down

0 comments on commit 9e21344

Please sign in to comment.