From d1e202dc359166f447d8f537b97f37710e6687a8 Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Mon, 9 Sep 2024 11:54:22 +0200 Subject: [PATCH] Update setup-python/java in GHA workflow --- .editorconfig | 3 +++ .github/workflows/main.yml | 17 +++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.editorconfig b/.editorconfig index b9e9010..cb5cd42 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,3 +4,6 @@ root = true charset = utf-8 indent_style = space indent_size = 4 + +[yaml] +indent_size = 2 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f01b5ba..05eb093 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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: |