updated tests for reference field #353
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:test | |
on: | |
push: | |
branches: | |
- rm-references-field | |
paths-ignore: | |
- "docs/**" | |
- "**.md" | |
pull_request: | |
branches: | |
- main | |
- INVENIO-243-update-12-locally | |
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 --dev | |
invenio-cli services setup -N | |
- 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 pipenv run pytest -p no:cacheprovider | |
- name: "Upload screenshots" | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: screenshots | |
path: screenshots/*.png |