Adding nohup.out to .gitignore #161
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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Set up Python 3.9 environment | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.9" | |
- name: Install invenio-cli | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv invenio-cli | |
- name: Install RDM | |
run: | | |
pip install invenio-cli | |
invenio-cli install | |
# Cache docker images so they don't rebuild every time | |
- name: Cache Local Images | |
id: local-images | |
uses: actions/cache@v3 | |
with: | |
path: /var/lib/docker/ | |
key: local-docker-directory | |
- name: Build Images | |
run: | | |
touch ./.env | |
docker compose up -d --build | |
- name: Set up services | |
run: | | |
invenio-cli services setup | |
- name: Start services | |
if: always() | |
run: | | |
bash ./kcr-startup.sh | |
- name: Run unit tests | |
run: cd site && pytest | |
- name: Stop services | |
if: always() | |
run: | | |
bash ./kcr-shutdown.sh | |
docker compose down | |