-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Uses Github action for tests. Invenio-oaiserver is not functional with marshmallow 2 in this version: - inveniosoftware/invenio-oaiserver#178 - inveniosoftware/invenio-oaiserver#185 - inveniosoftware/invenio-oaiserver#186 Co-Authored-by: Peter Weber <[email protected]>
- Loading branch information
Showing
15 changed files
with
886 additions
and
769 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,78 @@ | ||
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/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
|
||
- 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: snok/[email protected] | ||
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: | | ||
pip install "poetry<1.1.0" | ||
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 | ||
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,4 @@ master = true | |
die-on-term = true | ||
processes = 2 | ||
threads = 2 | ||
single-interpreter = true |
Oops, something went wrong.