-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: tesst and publish CI for
icij-common
and icij-worker
:wq
- Loading branch information
Showing
16 changed files
with
943 additions
and
22 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
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,30 @@ | ||
name: Publish icij-common | ||
|
||
on: | ||
push: | ||
tags: | ||
- icij-common-* | ||
|
||
jobs: | ||
publish-icij-common: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Setup Python project | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
cache: poetry | ||
- name: Install Python project | ||
run: cd icij-common && poetry install --with dev --sync | ||
# We assume tests have run in a previous workflow and just build and publish | ||
- name: Build and publish | ||
env: | ||
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
cd icij-common | ||
poetry build | ||
poetry config pypi-token.pypi {{ env.PYPI_API_TOKEN }} | ||
poetry publish |
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,30 @@ | ||
name: Publish icij-worker | ||
|
||
on: | ||
push: | ||
tags: | ||
- icij-worker-* | ||
|
||
jobs: | ||
publish-icij-worker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Setup Python project | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
cache: poetry | ||
- name: Install Python project | ||
run: cd icij-worker && poetry install --with dev --sync | ||
# We assume tests have run in a previous workflow and just build and publish | ||
- name: Build and publish | ||
env: | ||
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
cd icij-worker | ||
poetry build | ||
poetry config pypi-token.pypi {{ env.PYPI_API_TOKEN }} | ||
poetry publish |
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,42 @@ | ||
name: Test for icij-common | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'icij-common/**.py' | ||
- '.github/workflows/tests-common.yml' | ||
|
||
jobs: | ||
test-icij-common: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Setup Python project | ||
uses: actions/setup-python@v5 | ||
with: | ||
# TODO: use a version matrix here | ||
python-version: 3.9 | ||
cache: poetry | ||
- name: Install Python project | ||
run: cd icij-common && poetry install -v --with dev --sync | ||
- name: Run tests | ||
run: | | ||
cd icij-common | ||
poetry run python -m pytest -vvv --cache-clear --show-capture=all -r A . | ||
services: | ||
neo4j: | ||
image: neo4j:4.4.17 | ||
env: | ||
NEO4J_AUTH: neo4j/theneo4jpassword | ||
NEO4JLABS_PLUGINS: '["apoc"]' | ||
options: >- | ||
--health-cmd "cypher-shell -u neo4j -p theneo4jpassword -d neo4j 'CALL db.ping()'" | ||
--health-interval 2s | ||
--health-timeout 2s | ||
--health-retries 10 | ||
--health-start-period 20s | ||
ports: | ||
- 7475:7474 | ||
- 7688:7687 |
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,41 @@ | ||
name: Test for icij-worker | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'icij-worker/**.py' | ||
- '.github/workflows/tests-worker.yml' | ||
|
||
jobs: | ||
test-icij-worker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Setup Python project | ||
uses: actions/setup-python@v5 | ||
with: | ||
# TODO: use a version matrix here | ||
python-version: 3.9 | ||
cache: poetry | ||
- run: cd icij-worker && poetry install -v --with dev --sync | ||
- name: Run tests | ||
run: | | ||
cd icij-worker | ||
poetry run python -m pytest -vvv --cache-clear --show-capture=all -r A . | ||
services: | ||
neo4j: | ||
image: neo4j:4.4.17 | ||
env: | ||
NEO4J_AUTH: neo4j/theneo4jpassword | ||
NEO4JLABS_PLUGINS: '["apoc"]' | ||
options: >- | ||
--health-cmd "cypher-shell -u neo4j -p theneo4jpassword -d neo4j 'CALL db.ping()'" | ||
--health-interval 2s | ||
--health-timeout 2s | ||
--health-retries 10 | ||
--health-start-period 20s | ||
ports: | ||
- 7475:7474 | ||
- 7688:7687 |
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,5 +1,5 @@ | ||
# Monorepository for ICIJ's Python libraries | ||
# Monorepo for ICIJ Python libs | ||
|
||
## Libraries | ||
- [icij-common](icij-common) | ||
- [icij-worker](icij-worker) | ||
## [icij-common](icij-common) [![Test for icij-common](https://github.com/ICIJ/icij-python/actions/workflows/tests-common.yml/badge.svg)](https://github.com/ICIJ/icij-python/actions/workflows/tests-common.yml) | ||
|
||
## [icij-worker](icij-worker) [![Test for icij-worker](https://github.com/ICIJ/icij-python/actions/workflows/tests-worker.yml/badge.svg)](https://github.com/ICIJ/icij-python/actions/workflows/tests-worker.yml) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.