Skip to content

Commit 53b5d53

Browse files
Install sbt for sarplus tests (#2192)
Signed-off-by: Simon Zhao <[email protected]>
1 parent 7819b8b commit 53b5d53

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/sarplus.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# * GitHub Actions workflow templates
99
# + [python package](https://github.com/actions/starter-workflows/blob/main/ci/python-package.yml)
1010
# + [scala](https://github.com/actions/starter-workflows/blob/main/ci/scala.yml)
11-
# * [GitHub hosted runner - Ubuntu 20.04 LTS](https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md)
11+
# * [GitHub hosted runner - Ubuntu 24.04 LTS](https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md)
1212
# * [Azure Databricks runtime releases](https://docs.microsoft.com/en-us/azure/databricks/release-notes/runtime/releases)
1313
# * [Azure Synapse Analytics runtimes](https://docs.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-version-support)
1414

@@ -53,6 +53,14 @@ jobs:
5353
python -m pip install -U build cibuildwheel pip twine
5454
python -m pip install -U flake8 pytest pytest-cov scikit-learn
5555
56+
# Install sbt
57+
# See https://github.com/yokra9/akka-http-example/pull/119/files
58+
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
59+
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
60+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
61+
sudo apt-get update
62+
sudo apt-get install sbt
63+
5664
- name: Lint with flake8
5765
run: |
5866
cd "${PYTHON_ROOT}"
@@ -133,6 +141,15 @@ jobs:
133141
steps:
134142
- uses: actions/checkout@v4
135143

144+
- name: Install sbt
145+
run: |
146+
# See https://github.com/yokra9/akka-http-example/pull/119/files
147+
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
148+
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
149+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
150+
sudo apt-get update
151+
sudo apt-get install sbt
152+
136153
- name: Test
137154
run: |
138155
cd "${SCALA_ROOT}"

0 commit comments

Comments
 (0)