Skip to content

Commit

Permalink
CI and Badging Updates (#17)
Browse files Browse the repository at this point in the history
* Make tests run on main too, and updates pyproject.toml for a more information rich pypi page

* Update README and version number
  • Loading branch information
EUdds committed Dec 18, 2023
1 parent 2717863 commit cef34da
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
Expand All @@ -25,5 +17,5 @@ jobs:
- name: Build and publish to PyPI
uses: JRubics/poetry-publish@v1.17
with:
pypi_token: ${{ secrets.PYPI_KEY }} # optional
pypi_token: ${{ secrets.PYPI_KEY }}
repository_name: inventree_digikey_integration
9 changes: 8 additions & 1 deletion .github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Testing and Linting

on: [pull_request]
on:
push:
branches:
- main
pull_request:
release:
types: [published]


jobs:
build:
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Digikey-Inventree-Integration
[![Test Results](https://github.com/EUdds/digikey-inventree-integration/actions/workflows/python-test.yaml/badge.svg?branch=main)](https://github.com/EUdds/digikey-inventree-integration/actions/workflows/python-test.yaml)
[![PyPI version](https://badge.fury.io/py/inventree_digikey_integration.svg)](https://badge.fury.io/py/inventree_digikey_integration)


A CLI to ease importing [Digikey](https://www.digikey.com/) parts into an [Inventree](https://github.com/inventree/InvenTree) instance.

## Setup

Expand Down Expand Up @@ -52,4 +57,4 @@ optional arguments:

## Testing

Run the test suite by running `poetry run pytest`
Run the test suite by running `poetry run pytest`
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
[tool.poetry]
name = "inventree_digikey_integration"
version = "0.1.1"
version = "0.1.2"
description = "A CLI to import Digikey parts into an Inventree instance"
authors = ["Eric Udlis <udlis.eric@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/EUdds/digikey-inventree-integration"
repository = "https://github.com/EUdds/digikey-inventree-integration"
keywords = ["inventree", "digikey"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Natural Language :: English",
"Operating System :: OS Independent",
]

[tool.poetry.dependencies]
python = "^3.8"
Expand Down

0 comments on commit cef34da

Please sign in to comment.