Skip to content

Commit

Permalink
Update development status and package version
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenselander committed Jan 15, 2024
1 parent 9042327 commit 4345d57
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python package and test
on: [push, pull_request]

jobs:
test:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[test]
- name: Test with pytest
run: |
pytest
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = "A Python package for interacting with Kolada's statistical API."
readme = "README.md"
license = { file = "LICENSE.txt" }
classifiers = [
"Development Status :: 1 - Planning",
"Development Status :: 2 - Pre-Alpha",
"Programming Language :: Python",
]

Expand Down
2 changes: 1 addition & 1 deletion src/pykolada/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.1.0"
__version__ = "0.1.1"
from pykolada.pykolada import (
get_kpi,
get_kpi_groups,
Expand Down

0 comments on commit 4345d57

Please sign in to comment.