Skip to content

Commit

Permalink
Merge pull request #12 from qua-platform/add_ci_workflows_description
Browse files Browse the repository at this point in the history
CI: add workflows description
  • Loading branch information
maxim-v4s authored Aug 13, 2024
2 parents 9a89e91 + 0acebd4 commit 4d37f4f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# This workflow is used for manual (can be triggered via GitHub web interface)
# build of package archives for distribution. The build workflow
# (.github/workflows/reusable-build.yaml) is triggered for creation wheel and
# sdist package archives.

name: Build python package manually
on:
workflow_dispatch

jobs:
build:
uses: qua-platform/qualibrate-runner/.github/workflows/reusable-buld.yaml@main
uses: qua-platform/qualibrate-runner/.github/workflows/reusable-build.yaml@main
4 changes: 4 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This workflow is used for automatically running checks on adding commit to
# pull requests. This workflow triggers poe (poethepoet) commands: type, lint,
# format. The commands are defined in pyproject.toml.

name: Format; lint; type; tests
on:
pull_request
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: Create release
# This workflow is used for creating draft release on GitHub. Firstly the
# build workflow (.github/workflows/reusable-buld.yaml) is triggered for
# creation wheel and sdist package archives. Then the draft GitHub release is
# created with attached built python package archives.

name: Create draft GitHub release

on:
push:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: Build python package
# This workflow is used for building qualibrate-runner python package in dist
# and wheel formats. Built archives is attached to run as artifacts. The
# workflow should only be automatically triggered by other workflows (manual
# build and release).

name: Reusable build python package (called by other workflows)
on:
workflow_call
jobs:
Expand Down
4 changes: 2 additions & 2 deletions qualibrate_runner/api/routes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Annotated, Any, Mapping, Optional, Type, cast, Sequence
from typing import Annotated, Any, Mapping, Optional, Sequence, Type, cast

from fastapi import APIRouter, BackgroundTasks, Depends, HTTPException, status
from pydantic import BaseModel
Expand Down Expand Up @@ -145,7 +145,7 @@ def get_graph_cytoscape(
) -> Sequence[Mapping[str, Any]]:
return cast(
Sequence[Mapping[str, Any]],
graph.cytoscape_representation(graph.serialize())
graph.cytoscape_representation(graph.serialize()),
)


Expand Down

0 comments on commit 4d37f4f

Please sign in to comment.