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 a460523..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: @@ -43,4 +50,4 @@ jobs: - uses: psf/black@stable with: options: "--check --verbose" - src: "inventree_digikey tests" + src: "inventree_digikey_integration tests" 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..970bdae 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.1" 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"