Skip to content

Commit

Permalink
Fix deb/rpm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Gouache committed Dec 12, 2024
1 parent 249ee9c commit 3c9769c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/pack-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
fail-fast: false
matrix:
os: ['debian:10', 'debian:11', 'debian:12', 'ubuntu:20.04', 'ubuntu:22.04', 'ubuntu:24.04']
permissions:
contents: 'read'
id-token: 'write'
container:
image: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -102,6 +105,12 @@ jobs:
run: dpkg -i ./artifacts/khiops-driver-*.deb
- name: Check Khiops core installation
uses: ./.github/actions/test-khiops-install
# Retrieve google credentials through WIF
# see https://github.com/google-github-actions/auth?tab=readme-ov-file#workload-identity-federation-through-a-service-account
- uses: google-github-actions/auth@v2
with:
service_account: 'khiops-gcs-driver-test-sa@ino-olr-dak-ideal-sbx.iam.gserviceaccount.com'
workload_identity_provider: 'projects/322269704080/locations/global/workloadIdentityPools/github/providers/my-repo'
- name: Test Khiops on Iris dataset
uses: ./.github/actions/test-khiops-on-iris
with:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/pack-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ jobs:
fail-fast: false
matrix:
rocky_version: [8, 9]
permissions:
contents: 'read'
id-token: 'write'
container:
image: rockylinux:${{ matrix.rocky_version }}
steps:
Expand All @@ -93,7 +96,7 @@ jobs:
yum -y install curl
- name: Download and install Khiops core
run: |
curl -L https://github.com/KhiopsML/khiops/releases/download/10.2.3/khiops-core-${{ env.MPI_IMPLEMENTATION }}_10.2.3-1.el${{ env.VERSION }}.x86_64.rpm --output ./khiops-core.rpm
curl -L https://github.com/KhiopsML/khiops/releases/download/10.2.3/khiops-core-${{ env.MPI_IMPLEMENTATION }}_10.2.3-1.${{ env.VERSION }}.x86_64.rpm --output ./khiops-core.rpm
yum install -y ./khiops-core*
- name: Download artifacts (driver package)
uses: actions/download-artifact@v4
Expand All @@ -105,6 +108,12 @@ jobs:
yum install -y ./artifacts/khiops-driver-*.rpm
- name: Check Khiops core installation
uses: ./.github/actions/test-khiops-install
# Retrieve google credentials through WIF
# see https://github.com/google-github-actions/auth?tab=readme-ov-file#workload-identity-federation-through-a-service-account
- uses: google-github-actions/auth@v2
with:
service_account: 'khiops-gcs-driver-test-sa@ino-olr-dak-ideal-sbx.iam.gserviceaccount.com'
workload_identity_provider: 'projects/322269704080/locations/global/workloadIdentityPools/github/providers/my-repo'
- name: Test Khiops on Iris dataset
uses: ./.github/actions/test-khiops-on-iris
with:
Expand Down

0 comments on commit 3c9769c

Please sign in to comment.