Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #27

Merged
merged 23 commits into from
Jan 16, 2024
Merged

Dev #27

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
588803a
Adding digest_unanalyzed route + debug Operation being linked to Read…
paulstretenowich Oct 19, 2023
d262f87
Debug missing arg
paulstretenowich Oct 19, 2023
d91dcfc
Using project rather than project_name or project_id in routes - test 1
paulstretenowich Oct 26, 2023
8a982ee
Adding project converter/checker
paulstretenowich Oct 31, 2023
83bc30c
Debug pytest
paulstretenowich Oct 31, 2023
84bbdc0
Adding if to avoid failure if project_name in json set to null
paulstretenowich Nov 2, 2023
85e6a2f
Small fix
paulstretenowich Nov 9, 2023
e6389d2
Need to convert project_id from name_to_id from list of int into str
paulstretenowich Nov 9, 2023
bc43e8a
Merge branch 'main' into dev
paulstretenowich Nov 10, 2023
d935efd
Adding a new attribute for experiment: nucleic_acid_type
paulstretenowich Nov 20, 2023
dae290a
Debug
paulstretenowich Nov 21, 2023
66e1944
Consolidating docstring + adding experiment_nucleic_acid_type to dige…
paulstretenowich Nov 21, 2023
620fdf4
Code cleaning + docstring consolidation
paulstretenowich Nov 21, 2023
8674a8a
Changing error message
paulstretenowich Nov 29, 2023
0f80cf8
Accepting metric without flag set
paulstretenowich Nov 29, 2023
24319cb
Allowing job_status being null if job hasn't been submitted
paulstretenowich Nov 29, 2023
2375fdd
Skipping null job during ingesting genpipes as we don't want files no…
paulstretenowich Nov 29, 2023
3a12631
Build and push Image. Dockefile to Containerfile
poquirion Dec 19, 2023
476ae6e
typo in tag
poquirion Dec 19, 2023
556206e
typo in action
poquirion Dec 19, 2023
cf72100
Release container with latest_release tag on gitub release (#26)
poquirion Jan 16, 2024
ec5809b
Paulstretenowich patch 1 (#25)
poquirion Jan 16, 2024
a1474ea
Merge branch 'main' into dev
poquirion Jan 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Release
on:
release:
types: [published]

env:
REGISTRY_USER: c3genomics+github_pusher
IMAGE_REGISTRY: quay.io
REGISTRY_PASSWORD: ${{ secrets.QUAY_ROBOT_TOKEN }}
IMAGE: c3genomics/project_tracking
LATEST_RELEASE: latest_release

jobs:
build:
name: Release image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: pull release
run: |
# pull taged images and set to latest release
podman pull ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE }}:${{ env.RELEASE_VERSION }}
podman tag ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE }}:${{ env.RELEASE_VERSION }} \
${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE }}:${{ env.LATEST_RELEASE }}
- name: Push to repo
uses: redhat-actions/push-to-registry@v2
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
image: ${{ env.IMAGE }}
tags: ${{ env.LATEST_RELEASE }}
- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-repo.outputs.registry-paths }}"

132 changes: 63 additions & 69 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
@@ -1,77 +1,71 @@
---
name: Tests suite
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- 'main'
- 'dev'
push:
branches:
- 'main'
- 'dev'

tags:
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
types: [opened, synchronize, reopened]
branches: ['main', 'dev']
push:
tags: '[0-9]+.[0-9]+.[0-9]+'
branches: ['main', 'dev']

env:
REGISTRY_USER: c3genomics+github_pusher
IMAGE_REGISTRY: quay.io
REGISTRY_PASSWORD: ${{ secrets.QUAY_ROBOT_TOKEN }}
IMAGE: c3genomics/project_tracking
REGISTRY_USER: c3genomics+github_pusher
IMAGE_REGISTRY: quay.io
REGISTRY_PASSWORD: ${{ secrets.QUAY_ROBOT_TOKEN }}
IMAGE: c3genomics/project_tracking

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.11"]
os: [ubuntu-latest, macos-latest]
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.11"]
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[tests] flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is
# 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 \
--max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest -v
build:
needs: test
if: startsWith(github.ref, 'refs/tags')
name: Build image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Buildah Action
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE }}
tags: ${{ env.RELEASE_VERSION }} latest_release
containerfiles: ./Containerfile
- name: Push to repo
uses: redhat-actions/push-to-registry@v2
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
image: ${{ env.IMAGE }}
tags: ${{ env.RELEASE_VERSION }} latest_release
- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-repo.outputs.registry-paths }}"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[tests] flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is
# 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 \
--max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest -v
build:
needs: test
if: startsWith(github.ref, 'refs/tags')
name: Build image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Buildah Action
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE }}
tags: ${{ env.RELEASE_VERSION }}
containerfiles: ./Containerfile
- name: Push to repo
uses: redhat-actions/push-to-registry@v2
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
image: ${{ env.IMAGE }}
tags: ${{ env.RELEASE_VERSION }}
- name: Print image url
run: echo "Image pushed to ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE }}:${{ env.RELEASE_VERSION }}"