Skip to content

Commit

Permalink
Update setup-python/java in GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Sep 9, 2024
1 parent 0a2e14a commit 83433f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ root = true
charset = utf-8
indent_style = space
indent_size = 4

[yaml]
indent_size = 2
17 changes: 11 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ jobs:
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: setup.py

- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 11

- name: Install dependencies
Expand All @@ -43,19 +46,21 @@ jobs:
env:
WACKLIG_TOKEN: ${{ secrets.WACKLIG_TOKEN }}
run: |
curl -s https://raw.githubusercontent.com/pipifein/wacklig-uploader/master/wacklig.py | python - --token $WACKLIG_TOKEN || echo "Upload to wacklig failed"
curl -s https://raw.githubusercontent.com/pipifein/wacklig-uploader/master/wacklig.py | python - --token "$WACKLIG_TOKEN" || echo "Upload to wacklig failed"
publish:
name: Build & publish package to pypi
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: Set up python 3.7
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.7
cache: "pip"
cache-dependency-path: setup.py

- name: Build package
run: |
Expand Down

0 comments on commit 83433f2

Please sign in to comment.