Skip to content

Commit

Permalink
🔖 Release 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cp2004 authored Dec 20, 2020
2 parents 1d840d6 + 96548c4 commit c572488
Show file tree
Hide file tree
Showing 68 changed files with 6,629 additions and 2,091 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
octoprint_eeprom_marlin/_version.py export-subst
46 changes: 31 additions & 15 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,57 @@
name: Bug report
about: Think you found a bug? Use this.
title: "[Bug]"
labels: 'potential bug'
assignees: ''

labels: ""
assignees: ""
---

**Describe the bug**
<!--
Please fill out this template COMPLETELY to help analyse your issue faster.
Don't delete any lines from it, and try and provide as much detail as possible.
Incomplete issues will be closed at the maintainer's discretion.
-->

#### Describe the bug

<!-- A clear and concise description of what the bug is. -->

**Steps To Reproduce**
#### Steps To Reproduce

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
#### Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

**Logs**
<!--
#### Logs

<!--
Logs are of crucial importance, the `octoprint.log` should **NEVER** be missed in a bug report
Please either upload the file directly to github or link to somewhere like Github Gist, pastebin, etc.
Please note that you will be asked for this, so uploading it now saves us all time later
-->
`octoprint.log`:

**Versions, system information**
**Plugin**:
Version:
`octoprint.log`:

#### Versions, system information

**Plugin** Version:

**OctoPrint**
Version:

Version:

Operating System running OctoPrint:

Printer model & firmware version:
Browser:
**Printer** model & firmware version:

**Browser:**

**Additional context, screenshots, anything else you think might be useful**

<!-- Add any other context about the problem here. -->
28 changes: 20 additions & 8 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,31 @@
name: Feature request
about: Thought of a cool feature? Use this template.
title: "[Request]"
labels: 'request'
assignees: ''

labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
<!--
Please ensure that you have entered a title for this issue,
leaving `[Request]` there, so that this issue can be triaged by the bot.
Thanks for your cooperation!
-->

#### Is your feature request related to a problem? Please describe.

<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

**Describe the solution you'd like**
#### Describe the solution you'd like

<!-- A clear and concise description of what you want to happen. -->

**Describe alternatives you've considered**
#### Describe alternatives you've considered

<!-- A clear and concise description of any alternative solutions or features you've considered. -->

**Additional context**
<!-- Add any other context or screenshots about the feature request here. -->
#### Additional context

<!--
Add any other context or screenshots about the feature request here.
It is helpful to include things like Gcode command output, such as M503 here.
-->
22 changes: 16 additions & 6 deletions .github/ISSUE_TEMPLATE/support.md
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
-->
48 changes: 48 additions & 0 deletions .github/workflows/label.yml
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
})
}
83 changes: 83 additions & 0 deletions .github/workflows/release.yml
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
98 changes: 98 additions & 0 deletions .github/workflows/test.yaml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist
*.zip
.vscode
*.workspace
.sass-cache
Loading

0 comments on commit c572488

Please sign in to comment.