mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-16 04:56:56 +08:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00105dd491 | ||
|
|
c4e1cce63b | ||
|
|
b0288cbe4b | ||
|
|
9c31f34c4e | ||
|
|
df86bea2f9 | ||
|
|
2032cff787 | ||
|
|
9c0c5084d1 | ||
|
|
7803d6efb9 | ||
|
|
11ce447dda |
8
.github/pull_request_template.md
vendored
Normal file
8
.github/pull_request_template.md
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# New Features
|
||||||
|
* tbd
|
||||||
|
|
||||||
|
# Changes
|
||||||
|
* tbd
|
||||||
|
|
||||||
|
# Bug Fixes
|
||||||
|
* tbd
|
||||||
4
.github/workflows/UnitTesting.yml
vendored
4
.github/workflows/UnitTesting.yml
vendored
@@ -4,7 +4,7 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
jobs:
|
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
|
required: true
|
||||||
type: string
|
type: string
|
||||||
requirements:
|
requirements:
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
python -m pytest -rA tests/unit $PYTEST_ARGS --color=yes
|
python -m pytest -rA tests/unit $PYTEST_ARGS --color=yes
|
||||||
|
|
||||||
- name: 📤 Upload 'TestReport.xml' artifact
|
- name: 📤 Upload 'TestReport.xml' artifact
|
||||||
if: inputs.TestReport == 'true'
|
if: inputs.artifact != ''
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.artifact }}-${{ matrix.python }}
|
name: ${{ inputs.artifact }}-${{ matrix.python }}
|
||||||
|
|||||||
22
DEVELOPMENT.md
Normal file
22
DEVELOPMENT.md
Normal 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
|
||||||
|
```
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Unit Testing, Coverage Collection, Package, Release, Documentation and Publish
|
name: Pipeline
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -49,17 +49,8 @@ jobs:
|
|||||||
requirements: '-r tests/requirements.txt'
|
requirements: '-r tests/requirements.txt'
|
||||||
report: 'htmlmypy'
|
report: 'htmlmypy'
|
||||||
|
|
||||||
Release:
|
|
||||||
uses: pyTooling/Actions/.github/workflows/Release.yml@main
|
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
|
||||||
needs:
|
|
||||||
- UnitTesting
|
|
||||||
- Coverage
|
|
||||||
- StaticTypeCheck
|
|
||||||
|
|
||||||
Package:
|
Package:
|
||||||
uses: pyTooling/Actions/.github/workflows/Package.yml@main
|
uses: pyTooling/Actions/.github/workflows/Package.yml@main
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
|
||||||
needs:
|
needs:
|
||||||
- Params
|
- Params
|
||||||
- Coverage
|
- Coverage
|
||||||
@@ -69,6 +60,15 @@ jobs:
|
|||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
||||||
requirements: 'wheel'
|
requirements: 'wheel'
|
||||||
|
|
||||||
|
Release:
|
||||||
|
uses: pyTooling/Actions/.github/workflows/Release.yml@main
|
||||||
|
if: startsWith(github.ref, 'refs/tags')
|
||||||
|
needs:
|
||||||
|
- UnitTesting
|
||||||
|
- Coverage
|
||||||
|
- StaticTypeCheck
|
||||||
|
- Package
|
||||||
|
|
||||||
PublishOnPyPI:
|
PublishOnPyPI:
|
||||||
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@main
|
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@main
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
if: startsWith(github.ref, 'refs/tags')
|
||||||
@@ -117,6 +117,7 @@ jobs:
|
|||||||
uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@main
|
uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@main
|
||||||
needs:
|
needs:
|
||||||
- Params
|
- Params
|
||||||
|
- UnitTesting
|
||||||
- Coverage
|
- Coverage
|
||||||
- StaticTypeCheck
|
- StaticTypeCheck
|
||||||
- BuildTheDocs
|
- BuildTheDocs
|
||||||
|
|||||||
Reference in New Issue
Block a user