From 213616f9b73c4f7e8d5fb213618c29ba58c258c1 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Tue, 7 May 2024 09:50:23 +0200 Subject: [PATCH] update workflows --- .github/dependabot.yml | 14 ++++++++++++++ .github/workflows/ci.yml | 36 +++++++++++++----------------------- 2 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..4fa1bd99 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +# Set update schedule for GitHub Actions + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" + groups: + all: + patterns: + - "*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08671fec..8ff88c17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,29 +17,24 @@ on: - '.github/workflows/ci.yml' pull_request: env: - LATEST_PY_VERSION: '3.10' + LATEST_PY_VERSION: '3.12' jobs: tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: install lib postgres - run: | - sudo apt update - wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O- | sudo apt-key add - - echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" | sudo tee /etc/apt/sources.list.d/postgresql.list - sudo apt update - sudo apt-get install --yes libpq-dev postgis postgresql-14-postgis-3 + uses: nyurik/action-setup-postgis@v1 - name: Install dependencies run: | @@ -66,21 +61,16 @@ jobs: benchmark: needs: [tests] - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ env.LATEST_PY_VERSION }} - name: install lib postgres - run: | - sudo apt update - wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O- | sudo apt-key add - - echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" | sudo tee /etc/apt/sources.list.d/postgresql.list - sudo apt update - sudo apt-get install --yes libpq-dev postgis postgresql-14-postgis-3 + uses: nyurik/action-setup-postgis@v1 - name: Install dependencies run: | @@ -110,9 +100,9 @@ jobs: runs-on: ubuntu-latest if: contains(github.ref, 'tags') && github.event_name == 'push' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ env.LATEST_PY_VERSION }} @@ -152,7 +142,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v1