-
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
Showing
8 changed files
with
163 additions
and
1 deletion.
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,35 @@ | ||
name: Bug report | ||
description: File a bug report if DSO is breaking / not behaving in the way you expect | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description of bug | ||
description: | | ||
A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: log | ||
attributes: | ||
label: DSO Error log | ||
description: | | ||
Please paste your **full command** and DSO log. | ||
render: console | ||
placeholder: | | ||
$ dso | ||
- type: checkboxes | ||
id: checklist | ||
attributes: | ||
label: Before submitting | ||
description: >- | ||
Please ensure your bug report fulfills all of the following requirements. | ||
options: | ||
- label: >- | ||
I am using the latest release of DSO. | ||
required: true | ||
- label: >- | ||
I have included a full DSO log, not truncated. | ||
required: true |
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,10 @@ | ||
name: Feature request | ||
description: Suggest an idea for DSO | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description of feature | ||
description: Please describe your suggestion for a new feature. It might help to describe a problem or use case, plus any alternatives that you have considered. | ||
validations: | ||
required: true |
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,24 @@ | ||
name: "DSO lint" | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
pre_commit: | ||
name: "pre-commit" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
|
||
- uses: pre-commit/[email protected] | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
if: '!cancelled()' |
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,29 @@ | ||
name: Release to PyPI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/ | ||
jobs: | ||
release: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/dso # TODO update once settled on a name | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
filter: blob:none | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
cache: "pip" | ||
- run: pip install build | ||
- run: python -m build | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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,51 @@ | ||
name: "Unit tests for DSO" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "docs/**" | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
|
||
jobs: | ||
unit_tests_linux: | ||
name: "Python ${{ matrix.python-version }}" | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
python-version: ["3.12"] | ||
|
||
env: | ||
# GitHub currently has 4 cores available for Linux runners | ||
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | ||
worker_cores: 4 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
|
||
- name: Install libgit2 header files for libgit2 & pandoc for testing purposes | ||
run: sudo apt-get install -y libgit2-dev pandoc | ||
|
||
- name: "Install DSO" | ||
run: pip install -e '.[test]' | ||
|
||
- name: "Run unit tests" | ||
run: pytest -vv tests -n ${{ env.worker_cores }} --cov=dso --cov-report=xml | ||
|
||
# - name: "Upload coverage to Codecov" | ||
# uses: codecov/codecov-action@v4 | ||
# with: | ||
# files: ./coverage.xml | ||
# env: | ||
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
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,10 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
informational: true | ||
patch: | ||
default: | ||
informational: true | ||
github_checks: false | ||
comment: false |
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
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