forked from rero/rero-ebooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrades invenio to version 3.3.0. * Uses Github action for tests. Invenio-oaiserver is not functional in this version: - inveniosoftware/invenio-oaiserver#178 - inveniosoftware/invenio-oaiserver#185 - inveniosoftware/invenio-oaiserver#186 Co-Authored-by: Peter Weber <peter.weber@rero.ch>
- Loading branch information
Showing
10 changed files
with
684 additions
and
665 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: build | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
dependencies: ['locked', 'deploy'] | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@0.5.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Docker compose up | ||
run: docker-compose up -d | ||
|
||
- name: Set up Python 3.6 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
|
||
- name: Install Poetry | ||
uses: dschep/install-poetry-action@v1.2 | ||
with: | ||
version: 1.0.10 | ||
|
||
- name: Use Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.cache/pypoetry/virtualenvs | ||
~/.npm | ||
key: ${{ runner.os }}-pip-venv-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Bootstrap locked | ||
if: ${{ matrix.dependencies == 'locked' }} | ||
run: | | ||
poetry run bootstrap --ci | ||
- name: Bootstrap deploy | ||
if: ${{ matrix.dependencies == 'deploy' }} | ||
run: | | ||
poetry run bootstrap --ci --deploy E2E=yes | ||
# - name: Update pip and coveralls | ||
# run: | | ||
# poetry run pip install --upgrade pip | ||
# poetry run pip install --upgrade coveralls | ||
# | ||
# - name: Run Test | ||
# if: ${{ matrix.tests == '' }} | ||
# run: poetry run run-tests | ||
# | ||
# - name: Upload Coverage ${{ matrix.tests }} | ||
# if: ${{ matrix.dependencies == 'locked' }} | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# COVERALLS_FLAG_NAME: test | ||
# COVERALLS_PARALLEL: true | ||
# run: poetry run coveralls | ||
|
||
- name: Finished Coverage ${{ matrix.tests }} | ||
if: ${{ matrix.dependencies == 'locked' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_PARALLEL_FINISHED: true | ||
run: | | ||
poetry run coveralls --finish |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.