diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 1ed0f93..6060e94 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -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 @@ -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' @@ -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 @@ -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 @@ -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*' diff --git a/.github/workflows/test-docker.yml b/.github/workflows/test-docker.yml index 90f92e4..2f465e5 100644 --- a/.github/workflows/test-docker.yml +++ b/.github/workflows/test-docker.yml @@ -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: @@ -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: