You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2023/04/12 23:22:45 UTC
[arrow-julia] branch main updated: add dev CI for monorepo (#424)
This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-julia.git
The following commit(s) were added to refs/heads/main by this push:
new b3feee6 add dev CI for monorepo (#424)
b3feee6 is described below
commit b3feee6aaf6cff791820e432198f47b0700045d8
Author: Jerry Ling <pr...@jling.dev>
AuthorDate: Wed Apr 12 19:22:39 2023 -0400
add dev CI for monorepo (#424)
Co-authored-by: Eric Hanson <58...@users.noreply.github.com>
Co-authored-by: Sutou Kouhei <ko...@cozmixng.org>
---
.github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++
Project.toml | 6 ++++--
test/runtests.jl | 2 +-
3 files changed, 42 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 55ab814..c2206a3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -105,6 +105,43 @@ jobs:
- uses: codecov/codecov-action@v1
with:
file: lcov.info
+ test_monorepo:
+ name: Monorepo dev - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: true
+ matrix:
+ version:
+ - '1' # automatically expands to the latest stable 1.x release of Julia
+ os:
+ - ubuntu-latest
+ arch:
+ - x64
+ steps:
+ - uses: actions/checkout@v3
+ - uses: julia-actions/setup-julia@v1
+ with:
+ version: ${{ matrix.version }}
+ arch: ${{ matrix.arch }}
+ - uses: actions/cache@v3
+ env:
+ cache-name: cache-artifacts
+ with:
+ path: ~/.julia/artifacts
+ key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
+ restore-keys: |
+ ${{ runner.os }}-test-${{ env.cache-name }}-
+ ${{ runner.os }}-test-
+ ${{ runner.os }}-
+ - name: Dev monorepo dependencies
+ shell: julia --project=monorepo {0}
+ run: |
+ using Pkg;
+ Pkg.develop([PackageSpec(path="."), PackageSpec(path="src/ArrowTypes")])
+ - name: Run monorepo tests
+ continue-on-error: false
+ run: >
+ julia --color=yes --project=monorepo -e 'using Pkg; Pkg.test("Arrow")'
docs:
name: Documentation
runs-on: ubuntu-latest
diff --git a/Project.toml b/Project.toml
index d1b0153..d3f1688 100644
--- a/Project.toml
+++ b/Project.toml
@@ -43,8 +43,8 @@ BitIntegers = "0.2"
CodecLz4 = "0.4"
CodecZstd = "0.7"
DataAPI = "1"
-LoggingExtras = "0.4, 1"
FilePathsBase = "0.9"
+LoggingExtras = "0.4, 1"
PooledArrays = "0.5, 1.0"
SentinelArrays = "1"
Tables = "1.1"
@@ -60,8 +60,10 @@ FilePathsBase = "48062228-2e41-5def-b9a4-89aafe57970f"
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
StructTypes = "856f2bd8-1eba-4b0a-8007-ebc267875bd4"
+Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[targets]
-test = ["CategoricalArrays", "DataFrames", "FilePathsBase", "JSON3", "Random", "StructTypes", "TOML", "Test"]
+test = ["CategoricalArrays", "DataFrames", "FilePathsBase", "JSON3", "Random", "StructTypes",
+"TOML", "Test", "Sockets"]
diff --git a/test/runtests.jl b/test/runtests.jl
index 512f3e1..511be4e 100644
--- a/test/runtests.jl
+++ b/test/runtests.jl
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-using Test, Arrow, ArrowTypes, Tables, Dates, PooledArrays, TimeZones, UUIDs,
+using Test, Arrow, ArrowTypes, Tables, Dates, PooledArrays, TimeZones, UUIDs, Sockets,
CategoricalArrays, DataAPI, FilePathsBase, DataFrames
using Random: randstring