From cef34da91f12e0689ca8c6d8980b98db48974065 Mon Sep 17 00:00:00 2001 From: Eric Udlis Date: Sun, 17 Dec 2023 16:53:30 -0800 Subject: [PATCH] CI and Badging Updates (#17) * Make tests run on main too, and updates pyproject.toml for a more information rich pypi page * Update README and version number --- .github/workflows/python-publish.yaml | 10 +--------- .github/workflows/python-test.yaml | 9 ++++++++- README.md | 7 ++++++- pyproject.toml | 11 ++++++++++- 4 files changed, 25 insertions(+), 12 deletions(-) diff --git a/.github/workflows/python-publish.yaml b/.github/workflows/python-publish.yaml index e920962..b8cc307 100644 --- a/.github/workflows/python-publish.yaml +++ b/.github/workflows/python-publish.yaml @@ -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: @@ -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 diff --git a/.github/workflows/python-test.yaml b/.github/workflows/python-test.yaml index 039e158..84ebe20 100644 --- a/.github/workflows/python-test.yaml +++ b/.github/workflows/python-test.yaml @@ -1,6 +1,13 @@ name: Testing and Linting -on: [pull_request] +on: + push: + branches: + - main + pull_request: + release: + types: [published] + jobs: build: diff --git a/README.md b/README.md index 496913e..70d0e78 100644 --- a/README.md +++ b/README.md @@ -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 @@ -52,4 +57,4 @@ optional arguments: ## Testing -Run the test suite by running `poetry run pytest` \ No newline at end of file +Run the test suite by running `poetry run pytest` diff --git a/pyproject.toml b/pyproject.toml index 4323a50..098db3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] 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"