Skip to content

Commit

Permalink
Bump actions
Browse files Browse the repository at this point in the history
  • Loading branch information
arekm committed Sep 4, 2024
1 parent 08a8cc5 commit 6d84f57
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
name: 🔨 Build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🏗 Set up Python 3.7
uses: actions/setup-python@v4
- name: 🏗 Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.12
- name: 🏗 Install build dependencies
run: |
pip install wheel --user
Expand All @@ -26,7 +26,7 @@ jobs:
run: |
python setup.py sdist bdist_wheel
- name: ⬆ Upload build result
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
Expand All @@ -35,11 +35,11 @@ jobs:
name: 🧹 Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 🏗 Set up Python 3.7
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: 🏗 Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.12
- name: 🏗 Set up dev dependencies
run: |
pip install octoprint[develop]
Expand All @@ -58,12 +58,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⬇ Download build result
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4.1.7
with:
name: dist
path: dist
- name: 🏗 Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: 🏗 Install OctoPrint
Expand All @@ -72,8 +72,9 @@ jobs:
- name: 🚀 Install wheel
if: matrix.installable == 'wheel'
run: |
pip install dist/OctoPrint_*-py2.py3-none-any.whl
pip install dist/*.whl
- name: 🚀 Install source tarball
if: matrix.installable == 'sdist'
run: |
pip install dist/OctoPrint-*.tar.gz
sdist=$(ls dist/*.tar.gz | grep -v source)
pip install "$sdist"

0 comments on commit 6d84f57

Please sign in to comment.