Skip to content

Updates to latest pyvroom #709

Updates to latest pyvroom

Updates to latest pyvroom #709

Workflow file for this run

# The readme-test workflow runs all commands contained in the README files of the apps.
name: readme-test
on:
push:
branches: [develop]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
jobs:
readme-test:
runs-on: ubuntu-latest
steps:
# Checks out the changes.
- name: git clone
uses: actions/checkout@v4
with:
lfs: true
# Make sure the commands remain unchanged.
- name: Check for changes in README file commands
run: |
python .nextmv/readme/readme-extract-commands.py
# Determine main language versions we support.
- name: set python and go versions
run: |
export GO_VERSION=$(yq '.language-support.go.version' workflow-configuration.yml)
echo "This is the Go version => $GO_VERSION"
echo "GO_VERSION=${GO_VERSION}" >> $GITHUB_ENV
export PYTHON_VERSION=$(yq '.language-support.python.version' workflow-configuration.yml)
echo "This is the Python version => $PYTHON_VERSION"
echo "PYTHON_VERSION=${PYTHON_VERSION}" >> $GITHUB_ENV
export JAVA_VERSION=$(yq '.language-support.java.version' workflow-configuration.yml)
echo "This is the Java version => $JAVA_VERSION"
echo "JAVA_VERSION=${JAVA_VERSION}" >> $GITHUB_ENV
export JAVA_DISTRIBUTION=$(yq '.language-support.java.distribution' workflow-configuration.yml)
echo "This is the Java distribution => $JAVA_DISTRIBUTION"
echo "JAVA_DISTRIBUTION=${JAVA_DISTRIBUTION}" >> $GITHUB_ENV
export RUST_VERSION=$(yq '.language-support.rust.version' workflow-configuration.yml)
echo "This is the Rust version => $RUST_VERSION"
echo "RUST_VERSION=${RUST_VERSION}" >> $GITHUB_ENV
export DOTNET_VERSION=$(yq '.language-support.dotnet.version' workflow-configuration.yml)
echo "This is the Dotnet version => $DOTNET_VERSION"
echo "DOTNET_VERSION=${DOTNET_VERSION}" >> $GITHUB_ENV
working-directory: .nextmv/
# Set up Go, Python, and Java according to previously determined versions.
- name: set up go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: "**/*.sum"
- name: set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: "maven"
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
- name: Set up .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
# Install further custom dependencies for some apps.
- name: Install custom dependencies
run: |
sudo apt-get update
echo "Installing pyomo dependencies"
sudo apt-get install -y coinor-cbc coinor-libcbc-dev
sudo apt-get install -y glpk-utils
# Run tests.
- name: Run tests
run: |
go test -v ./...
working-directory: .nextmv/readme