V11 deploy #275
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: | |
- main | |
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: "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: | | |
pipenv run python3.8 -m pip install 'setuptools~=57.5.0' | |
invenio-cli packages lock --pre --dev | |
invenio-cli install --pre --dev | |
- name: Start services and app | |
run: | | |
docker -v | |
docker compose up -d | |
#invenio-cli services start | |
invenio-cli run & | |
- name: "Run tests" | |
run: | | |
pipenv install --dev | |
E2E=no pipenv run pytest -p no:cacheprovider |