WIP: python3.10/11, opensearch, invenio upgrades #506
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: E2E - Server changes with python package installations | |
on: | |
pull_request: | |
branches: [master, next] | |
paths: | |
- "setup.py" | |
- "requirements.txt" | |
- "requirements-local-forks.txt" | |
- "Dockerfile" | |
- "docker-*.yml" | |
jobs: | |
Server-Change: | |
name: Server | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout to Code | |
- name: Run docker-compose stack | |
run: docker-compose -f docker-compose.e2e-override-ui.yml up -d | |
- name: Create DB | |
run: docker-compose -f docker-compose.e2e-override-ui.yml run web-api sh scripts/clean-and-init.sh | |
- name: Update save folder | |
run: docker-compose -f docker-compose.e2e-override-ui.yml run web-api cap files location local var/data --default | |
- name: Sleep for 180 seconds | |
run: sleep 180s | |
shell: bash | |
- name: Run Cypress | |
run: docker-compose -f docker-compose.e2e-override-ui.yml run cypress cypress run --headless | |
- name: Generate test file | |
run: docker-compose -f docker-compose.e2e-override-ui.yml run -u root web-api cap fixtures generate-tokens | |
- name: Test request from 'cap-client' container | |
run: docker-compose -f docker-compose.e2e-override-ui.yml run cap-client ./run-tests.sh --check-pytest-e2e |