add dev CI for monorepo (#424)
Co-authored-by: Eric Hanson <5846501+ericphanson@users.noreply.github.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
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 @@
- 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 @@
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 @@
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