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

Backstage and codecov #224

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: check-added-large-files
- id: check-yaml
exclude: ^helm\/diffcalc-api\/templates\/.*
exclude: ^helm\/diffcalc-api\/templates\/.*|catalog-info.yaml
- id: check-merge-conflict

- repo: local
Expand Down Expand Up @@ -36,4 +36,4 @@ repos:
stages: [commit]
language: system
entry: mypy
files: ^(src\/|tests\/).*\.py
files: ^(src\/|tests\/).*\.py
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Or if it is a commandline tool then you might put some example commands here::

No other features yet.

To test codecov.yaml, run:
```
curl -X POST --data-binary @codecov.yml https://codecov.io/validate
```
.. |code_ci| image:: https://github.com/dls-controls/diffcalc_api/workflows/Code%20CI/badge.svg?branch=master
:target: https://github.com/dls-controls/diffcalc_api/actions?query=workflow%3A%22Code+CI%22
:alt: Code CI
Expand Down
26 changes: 26 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: diffcalc
title: diffcalc
description: service for accessing diffcalc-core library methods, with a mongo database backend.
spec:
type: service
lifecycle: production
owner: user:ton99817
providesApis:
- diffcalc-api

---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: diffcalc-api
title: diffcalc-api
description: REST API for the service
spec:
type: openapi
lifecycle: production
owner: user:ton99817
definition:
$text: https://github.com/DiamondLightSource/diffcalc-api/releases/latest/download/openapi.json
9 changes: 9 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
coverage:
status:
project:
default:
target: 90%
threshold: 2%
patch:
default:
threshold: 2%
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
dependencies = [
"diffcalc-core @ git+https://github.com/DiamondLightSource/diffcalc-core.git@getMiscut",
"diffcalc-core @ git+https://github.com/DiamondLightSource/diffcalc-core.git",
"fastapi",
"uvicorn",
"pymongo",
Expand Down