Compare commits

..

20 commits

Author SHA1 Message Date
autobump
274f1064c0 Bump version: 0.1.0.dev5 → 0.1.0.dev6 2022-09-01 21:02:36 +00:00
498455baf2
rm coverage 2022-09-01 16:01:56 -05:00
86f02b2485
run 2022-09-01 16:01:00 -05:00
autobump
f3a91ca4ef Bump version: 0.1.0.dev4 → 0.1.0.dev5 2022-09-01 20:35:00 +00:00
5f19ff1901
its with not args 2022-09-01 15:34:21 -05:00
d79a546421
fix sort-imports 2022-09-01 15:32:31 -05:00
76ba3caa33
run test lint 2022-09-01 15:32:27 -05:00
autobump
24bcf58b42 Bump version: 0.1.0.dev3 → 0.1.0.dev4 2022-09-01 18:13:17 +00:00
6aa662c846
make a test file 2022-09-01 13:12:26 -05:00
52d82a1e66
run 2022-09-01 13:08:29 -05:00
b721301da1
run 2022-09-01 13:06:45 -05:00
autobump
5ac8128c56 Bump version: 0.1.0.dev2 → 0.1.0.dev3 2022-09-01 18:02:37 +00:00
881417634c
run 2022-09-01 13:01:53 -05:00
autobump
472f0e8660 Bump version: 0.1.0.dev1 → 0.1.0.dev2 2022-09-01 17:35:48 +00:00
3d90a64649
rename 2022-09-01 12:35:12 -05:00
autobump
e9573692fc Bump version: 0.1.0.dev0 → 0.1.0.dev1 2022-09-01 17:33:13 +00:00
7160ef5eae
only install hatch in action 2022-09-01 12:32:39 -05:00
autobump
e2c7e739d5 Bump version: 0.0.1 → 0.1.0.dev0 2022-09-01 16:06:59 +00:00
4c2fd06989
run on all branches 2022-09-01 11:01:20 -05:00
1472fd978d
remove badges 2022-09-01 11:00:05 -05:00
10 changed files with 49 additions and 25 deletions

BIN
.coverage Normal file

Binary file not shown.

2
.flake8 Normal file
View file

@ -0,0 +1,2 @@
[flake8]
ignore = E501, W503, F541, E203

View file

@ -1,18 +1,20 @@
# This is a basic workflow to help you get started with Actions
name: CI
name: Use hatch-version-action
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches: [ "*" ]
# 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"
@ -24,12 +26,6 @@ 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
with:
beforeCommand: "test-lint"

View file

@ -1,15 +1,5 @@
# 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)
-----
**Table of Contents**
- [Installation](#installation)
- [License](#license)
## Installation
```console

View file

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-present Waylon S. Walker <waylon@waylonwalker.com>
#
# SPDX-License-Identifier: MIT
__version__ = '0.0.1'
__version__ = "0.1.0.dev6"

View file

@ -26,6 +26,17 @@ classifiers = [
dependencies = []
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"black",
"isort",
"seed-isort-config",
"flake8",
"pytest",
"pytest-cov",
"pytest-mock",
]
[project.urls]
Documentation = "https://github.com/unknown/hatch-version-action-example#readme"
Issues = "https://github.com/unknown/hatch-version-action-example/issues"
@ -36,12 +47,27 @@ path = "hatch_version_action_example/__about__.py"
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-cov",
"black",
"isort",
"seed-isort-config",
"flake8",
"pytest",
"pytest-cov",
"pytest-mock",
]
[tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_version_action_example --cov=tests"
no-cov = "cov --no-cov"
lint = "flake8 hatch_version_action_example"
format = "black --check hatch_version_action_example"
sort-imports = "isort hatch_version_action_example"
test-lint = [
"lint",
"format",
"seed-isort-config",
"sort-imports",
"cov",
]
[[tool.hatch.envs.test.matrix]]
python = ["37", "38", "39", "310", "311"]
@ -59,3 +85,7 @@ exclude_lines = [
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.isort]
profile = "black"
known_third_party = []

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-present Waylon S. Walker <waylon@waylonwalker.com>
#
# SPDX-License-Identifier: MIT
def test_me():
assert True

Binary file not shown.

Binary file not shown.

2
tests/test_me.py Normal file
View file

@ -0,0 +1,2 @@
def test_me():
assert True