From ab79f4bfb0b038ddb9218407c5690ac6dd0bfc80 Mon Sep 17 00:00:00 2001 From: Christopher Cave-Ayland Date: Wed, 13 Mar 2024 17:24:38 +0000 Subject: [PATCH] Add tests to CI --- .github/workflows/ci.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd2c6f7..7122891 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,10 +8,28 @@ jobs: steps: - uses: actions/checkout@v3 - uses: pre-commit/action@v2.0.3 + 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: pipenv install --deploy --dev + - name: start services + run: invenio-cli services start + - 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