Skip to content
Open
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
3 changes: 3 additions & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--env=PIP_BREAK_SYSTEM_PACKAGES=1
--env=PIP_ROOT_USER_ACTION=ignore
--eventpath=.github/act/push-and-merge-group-events.json
9 changes: 9 additions & 0 deletions .github/act/push-and-merge-group-events.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ref": "",
"repository": {
"default_branch": "develop"
},
"merge_group": {
"base_ref": "develop"
}
}
11 changes: 7 additions & 4 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ jobs:
strategy:
fail-fast: false
matrix:
system:
- { os: windows-latest, shell: powershell }
- { os: ubuntu-latest, shell: bash }
- { os: macos-latest, shell: bash }
# In a local docker-based workflow run using act, only Linux-based systems are available
system: >-
${{ github.actor == 'nektos/act'
&& fromJSON('[{"os":"ubuntu-latest","shell":"bash"}]')
|| fromJSON('[{"os":"ubuntu-latest","shell":"bash"},
{"os":"windows-latest","shell":"powershell"},
{"os":"macos-latest","shell":"bash"}]') }}
# An empty ref means the commit pinned in .ci/env, the others are the
# released versions we keep the packages repository compatible with
spack_ref: ['', 'v1.2.2', 'v1.1.1']
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Install Node.js for local workflow runs using act
if: ${{ github.actor == 'nektos/act' }}
run: |
yum update -y
yum install -y nodejs
- uses: ./.github/actions/checkout-spack
- name: Bootstrap clingo
run: |
Expand Down Expand Up @@ -176,6 +181,7 @@ jobs:

bootstrap-dev-rhel8:
runs-on: ubuntu-latest
if: ${{ github.actor != 'nektos/act' }}
container: registry.access.redhat.com/ubi8/ubi
steps:
- name: Install dependencies
Expand All @@ -187,6 +193,11 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Install Node.js for local workflow runs using act
if: ${{ github.actor == 'nektos/act' }}
run: |
yum update -y
yum install -y nodejs
- uses: ./.github/actions/checkout-spack
with:
fetch-depth: 0
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/prechecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Install Node.js for local workflow runs using act
if: ${{ github.actor == 'nektos/act' }}
run: |
apt-get update
apt-get install -y nodejs
- uses: ./.github/actions/checkout-spack

- name: Test package.py canonicalization
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
jobs:
pr:
runs-on: ubuntu-latest
if: ${{ github.actor != 'nektos/act' }}
permissions:
contents: read
pull-requests: write
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: unit tests

on:
# Allows act's default push event to select this workflow locally. The job
# guards below prevent this local-only trigger from running tests on GitHub.
push:
workflow_dispatch:
workflow_call:

Expand All @@ -11,6 +14,9 @@ concurrency:
jobs:
# Run unit tests with different configurations on linux
ubuntu:
# Run act's synthetic push, or GitHub's workflow_call/dispatch events, but
# skip ordinary GitHub push events introduced only for act compatibility.
if: ${{ github.actor == 'nektos/act' || github.event_name != 'push' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -39,6 +45,8 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
# In local workflow runs using act, setup-python is not supported and not needed
if: ${{ github.actor != 'nektos/act' }}
with:
python-version: ${{ matrix.python-version }}
- name: Install System packages
Expand All @@ -56,6 +64,8 @@ jobs:

# Run unit tests on MacOS
macos:
# Keep the same event guard as the Linux matrix; act skips this platform.
if: ${{ github.actor == 'nektos/act' || github.event_name != 'push' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -76,6 +86,8 @@ jobs:

# Run unit tests on Windows
windows:
# Keep the same event guard as the Linux matrix; act skips this platform.
if: ${{ github.actor == 'nektos/act' || github.event_name != 'push' }}
defaults:
run:
shell:
Expand Down
Loading