V13 update depedencies #435
Workflow file for this run
This file contains hidden or 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:test | |
| on: | |
| push: | |
| paths-ignore: | |
| - "docs/**" | |
| - "**.md" | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "docs/**" | |
| - "**.md" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout current state" | |
| uses: actions/checkout@v3 | |
| - name: "Save Python and Node versions to env" | |
| run: | | |
| echo "PYTHON_VERSION=$(cat '.python-version')" >> ${GITHUB_ENV} | |
| echo "NODE_VERSION=$(cat '.nvmrc')" >> ${GITHUB_ENV} | |
| - name: "Set up Python" | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: "Set up Node" | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: "Install invenio-cli" | |
| run: | | |
| pip install --no-cache-dir --upgrade pip invenio-cli pipenv | |
| pip list | |
| - name: "Install XMLSec1 Dependency for Ultraviolet SAML" | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y libxml2-dev libxmlsec1-dev | |
| - name: "Check Invenio's requirements" | |
| run: | | |
| invenio-cli check-requirements | |
| - name: "Setup mandatory files" | |
| run: | | |
| echo -e "[cli]\nproject_dir = "$PWD"\nservices_setup = False" >> .invenio.private | |
| echo -e FLASK_SECRET_KEY="some random value" >> .env | |
| - name: "Install project dependencies" | |
| run: | | |
| invenio-cli install | |
| invenio-cli services setup -N | |
| - name: "Compile translations for restricted file of a public record" | |
| run: | | |
| invenio-cli translations compile | |
| - name: Start services and app | |
| run: | | |
| docker -v | |
| docker compose up -d | |
| #invenio-cli services start | |
| invenio-cli run & | |
| - name: "Check services status" | |
| run: | | |
| bash check-services.sh | |
| - name: "Run tests" | |
| run: | | |
| pipenv install --dev | |
| E2E=yes SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://ultraviolet:ultraviolet@localhost/ultraviolet pipenv run pytest -p no:cacheprovider | |
| - name: "Upload screenshots" | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: screenshots | |
| path: screenshots/*.png |