forked from bigchaindb/cryptoconditions
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removed automated "keyring" handling from ZenroomSha256.sign method * improved sample code * simplified dependency management * improved github workflows * fixed parse_asn1_dict_payload parsing issue with data or key being set to None and being converted to 'null' * added testcases for the data and key set to None * added testcase for script encoding/decoding * blackified Signed-off-by: Jürgen Eckel <[email protected]>
- Loading branch information
Showing
13 changed files
with
221 additions
and
169 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# Copyright © 2020 Interplanetary Database Association e.V., | ||
# Planetmint and IPDB software contributors. | ||
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) | ||
# Code is Apache-2.0 and docs are CC-BY-4.0 | ||
|
||
--- | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
tags: | ||
- "v*.*.*" | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: psf/black@stable | ||
with: | ||
options: "--check -l 119" | ||
src: "." | ||
audit: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install pip-audit | ||
run: pip install --upgrade pip pip-audit | ||
|
||
- name: Install dependencies | ||
run: pip install . | ||
|
||
- name: Create requirements.txt | ||
run: pip freeze > requirements.txt | ||
|
||
- name: Audit dependencies | ||
run: pip-audit | ||
|
||
test: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Setup poetry | ||
uses: Gr1N/setup-poetry@v7 | ||
|
||
- name: Install dependencies | ||
run: poetry install --with test | ||
|
||
- name: Run tests | ||
run: poetry run pytest -v | ||
|
||
release: | ||
needs: test | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Setup poetry | ||
uses: Gr1N/setup-poetry@v7 | ||
|
||
- name: Install dependencies | ||
run: poetry install --with dev | ||
|
||
- name: Upload to PyPI | ||
run: | | ||
poetry build | ||
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} | ||
- name: Upload to GitHub | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: dist/* |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,2 +1,2 @@ | ||
__version__ = "1.0.0" | ||
__short_version__ = "1.0" | ||
__version__ = "1.1.0" | ||
__short_version__ = "1.1" |
Oops, something went wrong.