Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/1_create_release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ on:
required: false
default: 'master'

concurrency:
# Only let this run 1 at a time
group: ${{ github.workflow }}
cancel-in-progress: false

defaults:
run:
shell: bash

env:
FORCE_COLOR: 2
PIP_PROGRESS_BAR: off

jobs:
create-release-pr:
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/2_auto_publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ on:
# NOTE: While this is too generic, we use the `if` condition of the job to narrow it down
# NOTE: Don't use `branches` as we might create release on any branch

concurrency:
# Only let this run 1 at a time
group: ${{ github.workflow }}
cancel-in-progress: false

defaults:
run:
shell: bash

env:
FORCE_COLOR: 2
PIP_PROGRESS_BAR: off
# Best not to include the GH token here, only do it for the steps that need it
MERGE_SHA: ${{ github.event.pull_request.merge_commit_sha }}
CHANGELOG_FILE: CHANGES.md
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/bash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

env:
FORCE_COLOR: 2
PIP_PROGRESS_BAR: off

jobs:
bash-docker:
runs-on: ubuntu-latest
Expand Down
32 changes: 24 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ on:
- 'MANIFEST.in' # check packaging
- 'pyproject.toml' # check build config
- 'setup.cfg' # check deps and project config
- '.gitignore'
- '.github/workflows/build.yml'

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

defaults:
run:
shell: bash -leo pipefail {0}

env:
FORCE_COLOR: 2
PIP_PROGRESS_BAR: off

jobs:
test:
Expand All @@ -18,21 +32,23 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
python: ['3.8', '3.9', '3.10', '3.11']
include:
- os: 'ubuntu-22.04'
python: '3.7'
os: ['ubuntu-latest', 'macos-latest']
python: ['3.7', '3.8', '3.9', '3.10', '3']
exclude:
- os: 'macos-latest'
python: '3.8'
python: '3.7'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
uses: mamba-org/setup-micromamba@v2
with:
python-version: ${{ matrix.python }}
cache-environment: true
post-cleanup: 'all'
environment-name: cylc-build
create-args: >-
python=${{ matrix.python }}

- name: Build
uses: cylc/release-actions/build-python-package@v1
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test_conda-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

env:
FORCE_COLOR: 2

jobs:
test_conda_install:
runs-on: ubuntu-latest
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ defaults:
run:
shell: bash -c "exec $CONDA_PREFIX/bin/bash -elo pipefail {0}"

env:
PIP_PROGRESS_BAR: off

jobs:
test:
runs-on: ${{ matrix.os }}
Expand All @@ -32,11 +35,9 @@ jobs:
- os: 'ubuntu-latest'
python-version: '3.9' # not the oldest, not the most recent version
time-zone: 'XXX-09:35'

env:
TZ: ${{ matrix.time-zone }}
PYTEST_ADDOPTS: --cov --cov-append -n 5 --color=yes

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -106,6 +107,8 @@ jobs:
strategy:
matrix:
python-version: ['3']
env:
FORCE_COLOR: 2
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ defaults:
run:
shell: bash -c "exec $CONDA_PREFIX/bin/bash -elo pipefail {0}"

env:
FORCE_COLOR: 2
PIP_PROGRESS_BAR: off

jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test_tutorial_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

env:
FORCE_COLOR: 2
PIP_PROGRESS_BAR: off

jobs:
test:
strategy:
Expand Down
Loading