|
8 | 8 | # * GitHub Actions workflow templates |
9 | 9 | # + [python package](https://github.com/actions/starter-workflows/blob/main/ci/python-package.yml) |
10 | 10 | # + [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) |
12 | 12 | # * [Azure Databricks runtime releases](https://docs.microsoft.com/en-us/azure/databricks/release-notes/runtime/releases) |
13 | 13 | # * [Azure Synapse Analytics runtimes](https://docs.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-version-support) |
14 | 14 |
|
|
36 | 36 | # Test pysarplus with different versions of Python. |
37 | 37 | # Package pysarplus and upload as GitHub workflow artifact when merged into |
38 | 38 | # the main branch. |
39 | | - runs-on: ubuntu-22.04 |
| 39 | + runs-on: ubuntu-24.04 |
40 | 40 | strategy: |
41 | 41 | matrix: |
42 | 42 | python-version: ["3.8", "3.9", "3.10", "3.11"] |
|
53 | 53 | python -m pip install -U build cibuildwheel pip twine |
54 | 54 | python -m pip install -U flake8 pytest pytest-cov scikit-learn |
55 | 55 |
|
| 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 | +
|
56 | 64 | - name: Lint with flake8 |
57 | 65 | run: | |
58 | 66 | cd "${PYTHON_ROOT}" |
@@ -133,6 +141,15 @@ jobs: |
133 | 141 | steps: |
134 | 142 | - uses: actions/checkout@v4 |
135 | 143 |
|
| 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 | +
|
136 | 153 | - name: Test |
137 | 154 | run: | |
138 | 155 | cd "${SCALA_ROOT}" |
|
0 commit comments