-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
# Conflicts: # fuji_server/controllers/fair_check.py # fuji_server/evaluators/fair_evaluator_minimal_metadata.py # fuji_server/evaluators/fair_evaluator_searchable.py # fuji_server/harvester/metadata_harvester.py
- Loading branch information
Showing
160 changed files
with
134,317 additions
and
36,398 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 |
---|---|---|
@@ -1,7 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
- package-ecosystem: docker | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
target-branch: master |
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
# docs: | ||
# runs-on: ubuntu-22.04 | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/checkout@v4 | ||
# - name: Set up Python 3.11 | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
|
@@ -50,16 +50,16 @@ jobs: | |
lint: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Cache python dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.cache/pre-commit | ||
key: pip-lint-${{ hashFiles('.pre-commit-config.yaml', 'pyproject.toml') }} | ||
key: lint-${{ hashFiles('.pre-commit-config.yaml', 'pyproject.toml') }} | ||
restore-keys: | | ||
pip-lint- | ||
lint- | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
|
@@ -71,30 +71,45 @@ jobs: | |
|
||
tests: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
python-version: ['3.11'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cache python dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-tests-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }} | ||
restore-keys: | | ||
pip-tests-${{ matrix.python-version }}- | ||
- name: Set up Python ${{ matrix.python-version }} | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: '3.11' | ||
cache: pip | ||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install hatch | ||
# TODO: remove, once dependencies are updated | ||
- run: hatch run python -m pip list | ||
- run: hatch run python -m pip list --outdated | ||
python -m pip install --upgrade hatch | ||
- name: Run test suite with coverage | ||
run: hatch run cov | ||
run: hatch run cov-ci | ||
|
||
- name: Upload coverage reports | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage | ||
retention-days: 1 | ||
path: | | ||
junit.xml | ||
pytest-coverage.txt | ||
coverage: | ||
runs-on: ubuntu-22.04 | ||
needs: tests | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Download coverage reports | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: coverage | ||
# Ref: https://github.com/MishaKav/pytest-coverage-comment | ||
- name: Add coverage comment | ||
uses: MishaKav/[email protected] | ||
with: | ||
title: Coverage | ||
pytest-coverage-path: pytest-coverage.txt | ||
junitxml-path: junit.xml |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
version: "3.3" | ||
version: '3.3' | ||
services: | ||
fujirest: | ||
image: "ghcr.io/pangaea-data-publisher/fuji:latest" | ||
image: ghcr.io/pangaea-data-publisher/fuji:latest | ||
ports: | ||
- "1071:1071" | ||
- 1071:1071 | ||
environment: | ||
- ENABLE_CORS=true | ||
- ENABLE_CORS=true | ||
|
||
notebook: | ||
image: "jupyter/minimal-notebook:latest" | ||
image: jupyter/minimal-notebook:latest | ||
environment: | ||
- JUPYTER_ENABLE_LAB=yes | ||
- JUPYTER_ENABLE_LAB=yes | ||
volumes: | ||
- .:/home/jovyan/work | ||
- .:/home/jovyan/work | ||
ports: | ||
- "8888:8888" | ||
- 8888:8888 |
Oops, something went wrong.