-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
68 changed files
with
6,629 additions
and
2,091 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 @@ | ||
octoprint_eeprom_marlin/_version.py export-subst |
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
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 |
---|---|---|
@@ -1,11 +1,21 @@ | ||
--- | ||
name: Support | ||
about: Need help using the plugin? Ask here | ||
title: '' | ||
labels: 'question' | ||
assignees: '' | ||
|
||
title: "" | ||
labels: "question" | ||
assignees: "" | ||
--- | ||
|
||
**What do you need help with?** | ||
<!-- Please describe your problem in as much detail as possible, to assist me in helping you out. The more information, the faster problems can be solved. Thanks! --> | ||
#### What do you need help with? | ||
|
||
<!-- | ||
Please describe your problem in as much detail as possible, to assist me in helping you out. | ||
The more information, the faster problems can be solved. Thanks! | ||
--> | ||
|
||
#### Link to octoprint.log | ||
|
||
<!-- | ||
Providing the octoprint log is of high importance, so that I can help you solve | ||
your issue effectively | ||
--> |
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: "Issue Labeler" | ||
on: | ||
issues: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
label-opened-and-edited: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
let labels = []; | ||
let setLabels = false; | ||
context.payload.issue.labels.forEach(label => { labels.push(label.name) }); | ||
switch (context.payload.action) { | ||
case 'opened': | ||
case 'edited': { | ||
if (context.payload.issue.title.match(/\[request\]|feature request/i)) { | ||
labels.push('request'); | ||
if (!labels.includes("solved")) { | ||
labels.push('needs review'); | ||
setLabels = true; | ||
} | ||
} | ||
if (context.payload.issue.title.match(/bug/i)) { | ||
if (!labels.includes("confirmed bug")){ | ||
labels.push('potential bug'); | ||
labels.push('needs review'); | ||
setLabels = true; | ||
} | ||
} | ||
if (labels.length === 0) { | ||
labels.push('needs triage'); | ||
setLabels = true; | ||
} | ||
break; | ||
} | ||
} | ||
if (setLabels) { | ||
github.issues.setLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: labels | ||
}) | ||
} |
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,83 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: [published, prereleased] | ||
|
||
jobs: | ||
build: | ||
name: 🔨 Build distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: 🏗 Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: 🏗 Install build dependencies | ||
run: | | ||
python -m pip install wheel octoprint --user | ||
- name: 🔨 Build a source zip | ||
run: | | ||
python setup.py sdist --formats=zip | ||
- name: ⬆ Upload build result | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
test-install: | ||
name: 🧪 Installation tests | ||
needs: build | ||
strategy: | ||
matrix: | ||
python: ["2.7", "3.7", "3.8"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏗 Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: ⬇ Download build result | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: 🏗 Install dependencies | ||
run: | | ||
python -m pip install --upgrade wheel setuptools pip | ||
python -m pip install octoprint | ||
- name: 🧪 Test install of package | ||
run: | | ||
python -m pip install "dist/Marlin EEPROM editor-*.zip" | ||
upload-asset: | ||
name: 📦 Upload asset to release | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
- test-install | ||
steps: | ||
- name: ⬇ Download build result | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: 🚚 Rename to release.zip | ||
run: | | ||
cp "dist/Marlin EEPROM editor-*.zip" release.zip | ||
- name: 🥅 Catch release ID | ||
id: get_release | ||
uses: bruceadams/get-release@v1.2.2 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: 📦 Attach release artifact | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_path: release.zip | ||
asset_name: release.zip | ||
asset_content_type: application/zip |
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,98 @@ | ||
name: Test | ||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
release: | ||
types: [published, prereleased] | ||
|
||
jobs: | ||
build: | ||
name: 🔨 Build distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: 🏗 Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: 🏗 Install build dependencies | ||
run: | | ||
python -m pip install wheel --user | ||
python -m pip install octoprint | ||
- name: 🔨 Build source zip | ||
run: | | ||
python setup.py sdist --formats=zip | ||
- name: 🚚 rename to sdist.zip | ||
run: | | ||
ls dist | ||
mv dist/Marlin\ EEPROM\ editor-*.zip dist/sdist.zip | ||
- name: ⬆ Upload build result | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
test-unit: | ||
name: 🧪 Unit tests | ||
strategy: | ||
matrix: | ||
python: ["2.7", "3.7", "3.8", "3.9"] | ||
octoprint: [">=1.4.2", ">=1.5.0rc1"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 🏗 Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: 🏗 Set up test dependencies | ||
run: | | ||
pip install octoprint${{ matrix.octoprint }} pytest | ||
pip install -e . | ||
- name: 🚀 Run test suite | ||
run: | | ||
pytest | ||
test-flake8: | ||
name: 🧪 Flake8 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 🏗 Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: 🏗 Set up test dependencies | ||
run: | | ||
pip install octoprint flake8 | ||
pip install -e . | ||
- name: 🚀 Run test suite | ||
run: | | ||
flake8 octoprint_eeprom_marlin tests setup.py | ||
test-install: | ||
name: 🧪 Installation tests | ||
needs: build | ||
strategy: | ||
matrix: | ||
python: ["2.7", "3.7", "3.8"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏗 Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: ⬇ Download build result | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: 🏗 Install dependencies | ||
run: | | ||
python -m pip install --upgrade wheel setuptools pip | ||
python -m pip install octoprint | ||
- name: 🧪 Test install of package | ||
run: | | ||
python -m pip install dist/sdist.zip |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ dist | |
*.zip | ||
.vscode | ||
*.workspace | ||
.sass-cache |
Oops, something went wrong.