-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from elixir-europe/test_workflow_branch
Fix docker compose and GitHub actions
- Loading branch information
Showing
8 changed files
with
78 additions
and
42 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,36 +1,44 @@ | ||
name: Test MARS | ||
on: | ||
pull_request: | ||
paths: | ||
-'mars-cli/**' | ||
push: | ||
paths: | ||
- "mars-cli/**" | ||
pull_request: | ||
paths: | ||
- "mars-cli/**" | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test-mars: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
test-mars: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
working-directory: ./mars-cli | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install -r requirements.txt | ||
pip install black | ||
pip install ruff | ||
- name: Test python code | ||
run: pytest --doctest-modules --cov=mars_lib tests/ --cov-fail-under=80 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
cache-dependency-path: '**/setup.py' | ||
- run: pip install -e '.[test]' | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Test python code | ||
run: pytest | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Formatting | ||
run: black --check mars_lib/ | ||
- name: Formatting | ||
run: black --check mars_lib/ | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Linting | ||
run: ruff check mars_lib/ | ||
- name: Linting | ||
run: ruff check mars_lib/ | ||
working-directory: ${{ env.working-directory }} |
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,2 @@ | ||
[run] | ||
omit = mars_lib/__init__.py, mars_lib/submit.py, mars_lib/credential.py |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[pytest] | ||
addopts = --doctest-modules --cov=mars_lib tests/ --cov-fail-under=80 |
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,3 +1,3 @@ | ||
requests | ||
jsonschema | ||
pytest | ||
keyring |
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,13 +1,13 @@ | ||
version: '3' | ||
|
||
services: | ||
isa_biosamples: | ||
build: ./repository-testservers/isajson-biosamples | ||
build: isajson-biosamples | ||
ports: | ||
- "8032:8032" | ||
restart: unless-stopped | ||
|
||
isa_sra: | ||
build: ./repository-testservers/isajson-ena | ||
build: isajson-ena | ||
ports: | ||
- "8042:8042" | ||
restart: unless-stopped | ||
|