Compare commits

..

9 Commits

Author SHA1 Message Date
umarcor
00105dd491 UnitTesting: fix artifact upload condition 2021-12-07 03:27:09 +01:00
Unai Martinez-Corral
c4e1cce63b add a Pull Request template (#14) 2021-12-04 22:21:03 +00:00
Patrick Lehmann
b0288cbe4b Added a PullRequest template. 2021-12-04 18:55:02 +01:00
umarcor
9c31f34c4e ExamplePipeline: change name to just 'Pipeline' 2021-12-02 02:49:29 +01:00
umarcor
df86bea2f9 UnitTesting: update description of input 'jobs' 2021-12-02 02:48:48 +01:00
umarcor
2032cff787 ExamplePipeline/ArtifactCleanUp: needs UnitTesting 2021-12-01 08:30:00 +01:00
Patrick Lehmann
9c0c5084d1 add DEVELOPMENT.md
add DEVELOPMENT.md
2021-12-01 00:20:15 +01:00
umarcor
7803d6efb9 add DEVELOPMENT.md 2021-12-01 00:13:09 +01:00
umarcor
11ce447dda ExamplePipeline: run Package unconditionally; Release needs Package 2021-11-30 23:58:41 +01:00
4 changed files with 43 additions and 12 deletions

8
.github/pull_request_template.md vendored Normal file
View File

@@ -0,0 +1,8 @@
# New Features
* tbd
# Changes
* tbd
# Bug Fixes
* tbd

View File

@@ -4,7 +4,7 @@ on:
workflow_call:
inputs:
jobs:
description: 'Space separated list of Python versions to run tests with.'
description: 'JSON list with field <python>, telling the versions to run tests with.'
required: true
type: string
requirements:
@@ -49,7 +49,7 @@ jobs:
python -m pytest -rA tests/unit $PYTEST_ARGS --color=yes
- name: 📤 Upload 'TestReport.xml' artifact
if: inputs.TestReport == 'true'
if: inputs.artifact != ''
uses: actions/upload-artifact@v2
with:
name: ${{ inputs.artifact }}-${{ matrix.python }}

22
DEVELOPMENT.md Normal file
View File

@@ -0,0 +1,22 @@
# Development
## Tagging/versioning
See context in [#5](https://github.com/pyTooling/Actions/issues/5).
Tag new releases in the `main` branch using a semver compatible value, starting with `v`:
```sh
git checkout main
git tag v0.0.0
git push upstream v0.0.0
```
Move the corresponding release branch (starting with `r`) forward by creating a merge commit, and using the merged tag
as the commit message:
```sh
git checkout r0
git merge --no-ff -m 'v0.0.0' v0.0.0
git push upstream r0
```

View File

@@ -1,4 +1,4 @@
name: Unit Testing, Coverage Collection, Package, Release, Documentation and Publish
name: Pipeline
on:
workflow_dispatch:
@@ -49,17 +49,8 @@ jobs:
requirements: '-r tests/requirements.txt'
report: 'htmlmypy'
Release:
uses: pyTooling/Actions/.github/workflows/Release.yml@main
if: startsWith(github.ref, 'refs/tags')
needs:
- UnitTesting
- Coverage
- StaticTypeCheck
Package:
uses: pyTooling/Actions/.github/workflows/Package.yml@main
if: startsWith(github.ref, 'refs/tags')
needs:
- Params
- Coverage
@@ -69,6 +60,15 @@ jobs:
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
requirements: 'wheel'
Release:
uses: pyTooling/Actions/.github/workflows/Release.yml@main
if: startsWith(github.ref, 'refs/tags')
needs:
- UnitTesting
- Coverage
- StaticTypeCheck
- Package
PublishOnPyPI:
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@main
if: startsWith(github.ref, 'refs/tags')
@@ -117,6 +117,7 @@ jobs:
uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@main
needs:
- Params
- UnitTesting
- Coverage
- StaticTypeCheck
- BuildTheDocs