Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[run]
relative_files = True
omit =
rero_ils/alembic/*
rero_ils/dojson/cli.py
rero_ils/modules/apiharvester/cli.py
rero_ils/modules/cli/fixtures.py
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/continuous-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ jobs:

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.0.10

# - name: Use Cache
# uses: actions/cache@v2
Expand All @@ -45,19 +43,19 @@ jobs:
- name: Bootstrap
if: ${{ matrix.dependencies == 'dev' }}
run: |
poetry run bootstrap --ci
poetry run ./scripts/bootstrap --ci
poetry install --no-root --extras sip2
pip install --upgrade coveralls

- name: Bootstrap deploy
if: ${{ matrix.dependencies == 'deploy' }}
run: |
poetry run bootstrap --ci --deploy E2E=yes
poetry run ./scripts/bootstrap --ci --deploy E2E=yes
poetry install --no-root --extras sip2

- name: Run Test
run: |
poetry run run-tests
poetry run poe run_tests

# NOT WORKING BECAUSE OF THIS PROBLEM:
# https://github.community/t/github-actions-are-severely-limited-on-prs/18179#M9249
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ ARG UI_TGZ=""

ENV INVENIO_COLLECT_STORAGE='flask_collect.storage.file'

RUN poetry run bootstrap --deploy ${UI_TGZ}
RUN poetry run ./scripts/bootstrap --deploy ${UI_TGZ}
RUN poetry install --no-root --extras sip2
2 changes: 1 addition & 1 deletion Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FROM python:3.9-slim-buster
# require debian packages
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install --no-install-recommends -y git vim-tiny curl gcc gnupg libc6-dev procps && rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade setuptools wheel pip "poetry<1.1.0"
RUN pip install --upgrade setuptools wheel pip poetry

# # uwsgi uwsgitop uwsgi-tools

Expand Down
10 changes: 5 additions & 5 deletions INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ all Python dependencies and build all static assets):
.. code-block:: console

$ cd rero-ils
$ poetry run bootstrap
$ poetry run ./scripts/bootstrap

Start all dependent services using docker-compose (this will start PostgreSQL,
Elasticsearch 6, RabbitMQ and Redis):
Expand Down Expand Up @@ -95,29 +95,29 @@ Next, create database tables, search indexes and message queues:

.. code-block:: console

$ poetry run setup
$ poetry run poe setup

Running
-------
Start the webserver and the celery worker:

.. code-block:: console

$ poetry run server
$ poetry run poe server

Start a Python shell:

.. code-block:: console

$ poetry run console
$ poetry run poe console

Upgrading
---------
In order to upgrade an existing instance simply run:

.. code-block:: console

$ poetry run update
$ poetry run poe update

Testing
-------
Expand Down
Loading