diff --git a/.coverage b/.coverage deleted file mode 100644 index c0b84ac..0000000 Binary files a/.coverage and /dev/null differ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8034278..b483680 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,20 +1,18 @@ # This is a basic workflow to help you get started with Actions -name: Use hatch-version-action +name: CI # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the "main" branch push: - branches: [ "*" ] + branches: [ "main" ] + pull_request: + branches: [ "main" ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -env: - HATCH_INDEX_USER: __token__ - HATCH_INDEX_AUTH: ${{ secrets.pypi_token }} - # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" @@ -26,4 +24,12 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4.2.0 + with: + python-version: '3.10' + + - run: pip install hatch + - uses: waylonwalker/hatch-version-action@v1 diff --git a/README.md b/README.md index 12ff265..86c47dc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Hatch Version Action Example +[![PyPI - Version](https://img.shields.io/pypi/v/hatch-version-action-example.svg)](https://pypi.org/project/hatch-version-action-example) +[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hatch-version-action-example.svg)](https://pypi.org/project/hatch-version-action-example) ----- diff --git a/hatch_version_action_example/__about__.py b/hatch_version_action_example/__about__.py index bf48ff9..fe60eb5 100644 --- a/hatch_version_action_example/__about__.py +++ b/hatch_version_action_example/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2022-present Waylon S. Walker # # SPDX-License-Identifier: MIT -__version__ = '0.1.0.dev4' +__version__ = '0.0.1' diff --git a/tests/__pycache__/__init__.cpython-310.pyc b/tests/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index b95f3a2..0000000 Binary files a/tests/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/tests/__pycache__/test_me.cpython-310-pytest-7.1.2.pyc b/tests/__pycache__/test_me.cpython-310-pytest-7.1.2.pyc deleted file mode 100644 index 0d66a79..0000000 Binary files a/tests/__pycache__/test_me.cpython-310-pytest-7.1.2.pyc and /dev/null differ diff --git a/tests/test_me.py b/tests/test_me.py deleted file mode 100644 index 7adb7d4..0000000 --- a/tests/test_me.py +++ /dev/null @@ -1,2 +0,0 @@ -def test_me(): - assert True