-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1ff0c74
Showing
20 changed files
with
889 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: π Bug Report | ||
description: Report a bug or unexpected behavior in βοΈ Object Mother Pattern. | ||
labels: [bug, pending] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thank you for interest! Please fill out the form below to report a bug. π₯ | ||
|
||
- type: textarea | ||
id: description | ||
validations: | ||
required: true | ||
attributes: | ||
label: Description | ||
description: | | ||
Please explain what you are seeing and what you would expect to see. | ||
Please provide as much detail as possible to make understanding and solving your problem as quick as possible. π | ||
- type: textarea | ||
id: example | ||
attributes: | ||
label: Example Code | ||
render: Python | ||
description: > | ||
If applicable, please add a self-contained, | ||
[minimal, reproducible, example](https://stackoverflow.com/help/minimal-reproducible-example) | ||
demonstrating the bug. | ||
placeholder: | | ||
import object_mother_pattern | ||
... | ||
- type: textarea | ||
id: version | ||
validations: | ||
required: true | ||
attributes: | ||
label: Python, Object Mother Pattern & OS Version | ||
render: Text | ||
description: | | ||
Which version of Python & CObject Mother Pattern are you using, and which Operating System? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: β¨ Feature Request | ||
description: Suggest a new feature for βοΈ Object Mother Pattern. | ||
labels: [enhancement, pending] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thank you for interest! Please fill out the form below to suggest a new feature. π | ||
|
||
- type: textarea | ||
id: description | ||
validations: | ||
required: true | ||
attributes: | ||
label: Description | ||
description: | | ||
Please give as much detail as possible about the feature you would like to suggest. π | ||
You might like to add: | ||
* A demo of how code might look when using the feature | ||
* Your use case(s) for the feature | ||
* Why the feature should be added to object mother pattern (as opposed to another library or just implemented in your code) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: github-actions | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: 'π·π» ci:' | ||
|
||
- package-ecosystem: pip | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: 'π¦ build:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Code Quality Pipeline | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
types: [opened, synchronize] | ||
schedule: | ||
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC | ||
|
||
permissions: | ||
security-events: write | ||
|
||
jobs: | ||
analyze: | ||
name: Code Quality Pipeline - ${{ matrix.language }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
language: [python] | ||
build-mode: [none] | ||
|
||
steps: | ||
- name: π₯ Checkout the repository | ||
uses: actions/checkout@v4.2.2 | ||
|
||
- name: βΆοΈ CodeQL Initialization | ||
uses: github/codeql-action/init@v3.27.9 | ||
with: | ||
languages: ${{ matrix.language }} | ||
build-mode: ${{ matrix.build-mode }} | ||
queries: security-extended, security-and-quality | ||
|
||
- name: π¬ CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3.27.9 | ||
with: | ||
category: '/language:${{matrix.language}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Smokeshow Pipeline | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Test Pipeline] | ||
types: [completed] | ||
|
||
permissions: | ||
statuses: write | ||
|
||
jobs: | ||
smokeshow: | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.13] | ||
|
||
name: Smokeshow Pipeline | ||
timeout-minutes: 5 | ||
steps: | ||
- name: π Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: π¦ Install dependencies | ||
run: pip install smokeshow | ||
|
||
- name: π₯ Download coverage files | ||
uses: actions/download-artifact@v4.1.8 | ||
with: | ||
name: coverage-html | ||
path: htmlcov | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
run-id: ${{ github.event.workflow_run.id }} | ||
|
||
- name: π Upload coverage report | ||
run: smokeshow upload htmlcov | ||
env: | ||
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage} | ||
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 100 | ||
SMOKESHOW_GITHUB_CONTEXT: coverage | ||
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head_sha }} | ||
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Format Pipeline | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
types: [opened, synchronize] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
format: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.13] | ||
|
||
name: Format Pipeline - Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
timeout-minutes: 5 | ||
steps: | ||
- name: π₯ Checkout the repository | ||
uses: actions/checkout@v4.2.2 | ||
|
||
- name: π Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- id: cache | ||
name: π¦ Create cache | ||
uses: actions/cache@v4.2.0 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ matrix.os }}-python-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml', 'requirements*') }} | ||
restore-keys: ${{ matrix.os }}-python-${{ matrix.python-version }}- | ||
|
||
- name: π¦ Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: make install-dev | ||
|
||
- name: π Run Formatter | ||
run: make format | ||
|
||
- name: π€ Commit & Push Changes | ||
uses: EndBug/add-and-commit@v9.1.4 | ||
with: | ||
add: . | ||
message: 'π¨ refactor: run automatic formatter' | ||
commit: --signoff | ||
default_author: github_actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Lint Pipeline | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.13] | ||
|
||
name: Lint Pipeline - Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
steps: | ||
- name: π₯ Checkout the repository | ||
uses: actions/checkout@v4.2.2 | ||
|
||
- name: π Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- id: cache | ||
name: π¦ Create cache | ||
uses: actions/cache@v4.2.0 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ matrix.os }}-python-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml', 'requirements*') }} | ||
restore-keys: ${{ matrix.os }}-python-${{ matrix.python-version }}- | ||
|
||
- name: π¦ Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: make install-dev | ||
|
||
- name: π Run Linter | ||
run: make lint | ||
|
||
- name: π« Store type coverage | ||
uses: actions/upload-artifact@v4.5.0 | ||
if: always() | ||
with: | ||
name: type_coverage_report_${{ matrix.os }}_${{ matrix.python-version }} | ||
path: index.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Publish Pipeline | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.13] | ||
|
||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/object-mother-pattern/ | ||
|
||
permissions: | ||
id-token: write | ||
|
||
name: Publish Pipeline | ||
timeout-minutes: 5 | ||
steps: | ||
- name: π₯ Checkout the repository | ||
uses: actions/checkout@v4.2.2 | ||
|
||
- name: π Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: π¦ Install dependencies | ||
run: pip install build | ||
|
||
- name: π οΈ Build distribution | ||
run: python -m build | ||
|
||
- name: π« Store distribution package | ||
uses: actions/upload-artifact@v4.5.0 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
- name: π Publish | ||
uses: pypa/gh-action-pypi-publish@v1.12.3 |
Oops, something went wrong.