Skip to content

Commit

Permalink
Add cffconvert dev dependency; use in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
karalekas committed Nov 20, 2022
1 parent 4bf3813 commit 800b449
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ jobs:
- name: Run pydocstyle
run: poetry run make check-pydocstyle

- name: Run cffconvert
run: poetry run make check-citation

- name: Install OQpy using pip
run: poetry run pip install .

Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ license: Apache-2.0
keywords:
- openqasm
- quantum
repository-code: "https://github.com/openqasm/oqpy"
repository-code: "https://github.com/openqasm/oqpy"
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ open-docs:
check-tests:
pytest --cov=oqpy -vv --color=yes tests

.PHONY: check-citation
check-citation:
cffconvert --validate

.PHONY: install-poetry
install-poetry:
command -v curl >/dev/null 2>&1 || { echo >&2 "please install curl and retry."; exit 1; }
Expand Down
Loading

0 comments on commit 800b449

Please sign in to comment.