Skip to content

Commit

Permalink
Status badging and ci updates (#18) (#19)
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

* Update lint CI to ref new src folder
  • Loading branch information
EUdds committed Dec 18, 2023
1 parent 34fee49 commit 3123530
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 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
11 changes: 9 additions & 2 deletions .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 Expand Up @@ -43,4 +50,4 @@ jobs:
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "inventree_digikey tests"
src: "inventree_digikey_integration tests"
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.1"
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 3123530

Please sign in to comment.