Skip to content

Commit

Permalink
CI: Update GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Oct 19, 2023
1 parent cea59b7 commit 4752dc9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ on:
# 7am EST / 8am EDT Mondays
- cron: '0 12 * * 1'

defaults:
run:
shell: bash

concurrency:
group: python-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
build:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3
Expand All @@ -47,7 +50,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
install: [repo]
include:
- python-version: '3.11'
Expand All @@ -59,7 +62,7 @@ jobs:
env:
INSTALL_TYPE: ${{ matrix.install }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: matrix.install == 'repo' || matrix.install == 'editable'
with:
fetch-depth: 0
Expand Down Expand Up @@ -110,7 +113,7 @@ jobs:
needs: [build, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3
Expand All @@ -130,7 +133,7 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Create GitHub release from annotated tag
uses: spenserblack/actions-tag-to-release@v1.1.0
uses: spenserblack/actions-tag-to-release@v3
with:
prerelease: auto
prerelease-pattern: '*rc*'
12 changes: 8 additions & 4 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ on:
branches:
- main

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docker:
if: "contains(github.event.commits[0].message, '[docker test]')"
name: Docker tests
defaults:
run:
shell: bash --noprofile --norc -exo pipefail {0}
strategy:
fail-fast: false
matrix:
Expand All @@ -37,7 +41,7 @@ jobs:
docker_version: "20.10"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: setup Docker
uses: docker-practice/actions-setup-docker@master
with:
Expand Down

0 comments on commit 4752dc9

Please sign in to comment.