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
23 changes: 12 additions & 11 deletions .github/workflows/Test-CI-dev-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,18 @@ jobs:
python -m pip install -U -r requirements_tests.txt \
--extra-index-url https://pypi.org/simple

# - name: Install couenne solver
# env:
# COUENNE_FILE: tests/resources/couenne.gz
# LOCAL_BIN: ${{ runner.temp }}/.local/bin
# run: |
# set -eux
# git lfs pull -I "$COUENNE_FILE"
# mkdir -p "$LOCAL_BIN"
# echo "$LOCAL_BIN" >>"$GITHUB_PATH"
# gzip -dc "$COUENNE_FILE" >"${LOCAL_BIN}/couenne"
# chmod ugo+x "${LOCAL_BIN}/couenne"
- name: Install couenne solver
env:
COUENNE_SOURCE: "s3://public-library-resources/couenne.gz"
COUENNE_FILE: ${{ runner.temp }}/couenne.gz
LOCAL_BIN: ${{ runner.temp }}/.local/bin
run: |
set -eux
aws s3 cp "$COUENNE_SOURCE" "$COUENNE_FILE"
mkdir -p "$LOCAL_BIN"
echo "$LOCAL_BIN" >>"$GITHUB_PATH"
gzip -dc "$COUENNE_FILE" >"${LOCAL_BIN}/couenne"
chmod ugo+x "${LOCAL_BIN}/couenne"

# Set authentication with M2M token
- name: Set authentication
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/Test-CI-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,18 @@ jobs:
python -m pip install -U -r requirements_tests.txt \
--extra-index-url https://pypi.org/simple

# - name: Install couenne solver
# env:
# COUENNE_FILE: tests/resources/couenne.gz
# LOCAL_BIN: ${{ runner.temp }}/.local/bin
# run: |
# set -eux
# git lfs pull -I "$COUENNE_FILE"
# mkdir -p "$LOCAL_BIN"
# echo "$LOCAL_BIN" >>"$GITHUB_PATH"
# gzip -dc "$COUENNE_FILE" >"${LOCAL_BIN}/couenne"
# chmod ugo+x "${LOCAL_BIN}/couenne"
- name: Install couenne solver
env:
COUENNE_SOURCE: "s3://public-library-resources/couenne.gz"
COUENNE_FILE: ${{ runner.temp }}/couenne.gz
LOCAL_BIN: ${{ runner.temp }}/.local/bin
run: |
set -eux
aws s3 cp "$COUENNE_SOURCE" "$COUENNE_FILE"
mkdir -p "$LOCAL_BIN"
echo "$LOCAL_BIN" >>"$GITHUB_PATH"
gzip -dc "$COUENNE_FILE" >"${LOCAL_BIN}/couenne"
chmod ugo+x "${LOCAL_BIN}/couenne"

# Set authentication with M2M token
- name: Set authentication
Expand Down
39 changes: 20 additions & 19 deletions .github/workflows/Test-CI-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ jobs:
restore-keys: |
${{ runner.os }}-venv-

# Configure AWS credentials
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4.0.2
with:
role-to-assume: ${{ secrets.AWS_ROLE }}
aws-region: us-east-1
mask-aws-account-id: true

- name: Install dependencies
if: steps.cache-pip.outputs.cache-hit != 'true'
run: |
Expand All @@ -106,29 +114,22 @@ jobs:
python -m pip install -U -r requirements.txt
python -m pip install -U -r requirements_tests.txt

# - name: Install couenne solver
# env:
# COUENNE_FILE: tests/resources/couenne.gz
# LOCAL_BIN: ${{ runner.temp }}/.local/bin
# run: |
# set -eux
# git lfs pull -I "$COUENNE_FILE"
# mkdir -p "$LOCAL_BIN"
# echo "$LOCAL_BIN" >>"$GITHUB_PATH"
# gzip -dc "$COUENNE_FILE" >"${LOCAL_BIN}/couenne"
# chmod ugo+x "${LOCAL_BIN}/couenne"
- name: Install couenne solver
env:
COUENNE_SOURCE: "s3://public-library-resources/couenne.gz"
COUENNE_FILE: ${{ runner.temp }}/couenne.gz
LOCAL_BIN: ${{ runner.temp }}/.local/bin
run: |
set -eux
aws s3 cp "$COUENNE_SOURCE" "$COUENNE_FILE"
mkdir -p "$LOCAL_BIN"
echo "$LOCAL_BIN" >>"$GITHUB_PATH"
gzip -dc "$COUENNE_FILE" >"${LOCAL_BIN}/couenne"
chmod ugo+x "${LOCAL_BIN}/couenne"

#
# Setup Environment
#
# Configure AWS credentials
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4.0.2
with:
role-to-assume: ${{ secrets.AWS_ROLE }}
aws-region: us-east-1
mask-aws-account-id: true

# Set authentication with M2M token
- name: Set authentication
run: .github/scripts/get_m2m_token.sh
Expand Down
Loading