Skip to content

Commit 4992696

Browse files
committed
Add publish workflow
1 parent 56f487c commit 4992696

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.github/workflows/publish.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: publish
2+
on:
3+
push:
4+
tags:
5+
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching *, i.e. 1.0, 20.15.10
6+
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching *rc*, i.e. v1.0-rc1, v20.15.10-rc5
7+
- "v[0-9]+.[0-9]+.[0-9]+-beta*" # Push events to matching *b*, i.e. v1.0-beta1, v20.15.10-beta5
8+
9+
jobs:
10+
publish:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: [3.7, 3.8, 3.9, '3.10']
15+
os: [ubuntu-latest]
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Python Poetry Action
24+
uses: abatilo/[email protected]
25+
- name: Install dependencies
26+
run: |
27+
poetry install
28+
- name: Lint with flake8
29+
run: |
30+
poetry run flake8 pycardano
31+
- name: Run unit tests
32+
run: |
33+
poetry run pytest --doctest-modules --ignore=examples --cov=pycardano --cov-config=.coveragerc --cov-report=xml
34+
- name: poetry-check
35+
run: |
36+
poetry check
37+
- name: poetry-publish
38+
run: |
39+
poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }}

pyproject.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
[tool.poetry]
22
name = "pycardano"
33
version = "0.1.0"
4-
description = "A python implementation of Cardano client"
4+
classifiers = [
5+
"Intended Audience :: Developers",
6+
"License :: OSI Approved :: MIT License",
7+
"Natural Language :: English",
8+
"Programming Language :: Python :: 3",
9+
"Programming Language :: Python :: 3.7",
10+
"Programming Language :: Python :: 3.8",
11+
"Programming Language :: Python :: 3.9",
12+
"Programming Language :: Python :: 3.10",
13+
]
14+
description = "A Cardano library in Python"
15+
homepage = "https://github.com/cffls/pycardano"
16+
documentation = "https://pycardano.readthedocs.io/en/latest/"
17+
keywords = ["python", "cardano", "blockchain", "crypto"]
518
authors = ["Jerry <[email protected]>"]
19+
readme = "README.md"
20+
repository = "https://github.com/cffls/pycardano"
621
license = "MIT"
722

823
[tool.poetry.dependencies]

0 commit comments

Comments
 (0)