Skip to content

Commit

Permalink
🚀 Releasing 3.0.1, #135
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail authored Aug 1, 2023
2 parents f7cfc34 + f4bebb1 commit e220bad
Show file tree
Hide file tree
Showing 9 changed files with 1,014 additions and 289 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
with:
github-token: ${{ secrets.github_token }}
flag-name: ui
parallel: true
parallel: true
- name: Build JS
working-directory: ts
run: yarn build
Expand All @@ -52,13 +52,25 @@ jobs:
strategy:
matrix:
python: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
octoprint: [ "1.8", "1.9" ]
octoprint: [ "1.5", "1.6", "1.7", "1.8", "1.9" ]
exclude:
# These versions are not compatible to each other:
- python: 3.11
octoprint: 1.8
- python: 3.10
octoprint: 1.8
- octoprint: 1.5
python: 3.10
- octoprint: 1.5
python: 3.11
- octoprint: 1.6
python: 3.10
- octoprint: 1.6
python: 3.11
- octoprint: 1.7
python: 3.10
- octoprint: 1.7
python: 3.11
- octoprint: 1.8
python: 3.10
- octoprint: 1.8
python: 3.11
steps:
- uses: actions/checkout@v3
- name: Install Python
Expand All @@ -78,15 +90,17 @@ jobs:
run: pip install octoprint~=${{ matrix.octoprint }}.0
- name: Install Wheel
# see https://community.octoprint.org/t/setuptools-error-while-installing-plugin-octoklipper-on-manual-op-installation/51387
if: matrix.octoprint == '1.8'
if: matrix.octoprint != '1.9'
run: pip install wheel
- name: Install OctoRelay
run: pip install -e .
- name: Prepare testing environment
run: pip install coverage
run: pip install coverage pylint
- name: Test
working-directory: octoprint_octorelay
run: python -m coverage run -m unittest test__init.py
- name: Lint
run: pylint --rcfile=.pylintrc ./octoprint_octorelay
- name: Report the coverage
working-directory: octoprint_octorelay
run: |
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,25 @@ jobs:
strategy:
matrix:
python: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
octoprint: [ "1.8", "1.9" ]
octoprint: [ "1.5", "1.6", "1.7", "1.8", "1.9" ]
exclude:
# These versions are not compatible to each other:
- python: 3.11
octoprint: 1.8
- python: 3.10
octoprint: 1.8
- octoprint: 1.5
python: 3.10
- octoprint: 1.5
python: 3.11
- octoprint: 1.6
python: 3.10
- octoprint: 1.6
python: 3.11
- octoprint: 1.7
python: 3.10
- octoprint: 1.7
python: 3.11
- octoprint: 1.8
python: 3.10
- octoprint: 1.8
python: 3.11
steps:
- name: Install Python
uses: actions/setup-python@v4
Expand All @@ -93,7 +105,7 @@ jobs:
run: pip install octoprint~=${{ matrix.octoprint }}.0
- name: Install Wheel
# see https://community.octoprint.org/t/setuptools-error-while-installing-plugin-octoklipper-on-manual-op-installation/51387
if: matrix.octoprint == '1.8'
if: matrix.octoprint != '1.9'
run: pip install wheel
- name: Install the distributed package
run: pip install dist/OctoRelay-*.zip
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
.vscode
__pycache__
OctoRelay.egg-info
Loading

0 comments on commit e220bad

Please sign in to comment.