Issue #1017 Only warn if the "base" LMDB env is opened twice #2285
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build with conda | |
on: | |
push: | |
branches: | |
- master | |
# For Pull-Requests, this runs the CI on merge commit | |
# of HEAD with the target branch instead on HEAD, allowing | |
# testing against potential new states which might have | |
# been introduced in the target branch last commits. | |
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request | |
pull_request: | |
jobs: | |
linux: | |
strategy: | |
matrix: | |
# we use two jobs for python and cpp tests st. they can run in parallel | |
include: | |
- os: ubuntu-latest | |
cpp_tests: "1" | |
python_tests: "0" | |
- os: ubuntu-latest | |
cpp_tests: "0" | |
python_tests: "1" | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
services: | |
mongodb: | |
image: mongo:4.4 | |
ports: | |
- 27017:27017 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Get number of CPU cores | |
uses: SimenB/github-actions-cpu-cores@v1 | |
id: cpu-cores | |
- name: Install Conda environment from environment_unix.yml | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: environment_unix.yml | |
init-shell: >- | |
bash | |
cache-environment: true | |
post-cleanup: 'all' | |
- name: Build ArcticDB with conda (ARCTICDB_USING_CONDA=1) | |
shell: bash -l {0} | |
run: | | |
# Protocol buffers compilation require not using build isolation. | |
python -m pip install --no-build-isolation --no-deps -v -e . | |
env: | |
ARCTICDB_USING_CONDA: 1 | |
# Using one thread to avoid swapping which might freeze CI machines. | |
CMAKE_BUILD_PARALLEL_LEVEL: 1 | |
ARCTICDB_BUILD_CPP_TESTS: ${{ matrix.cpp_tests }} | |
- name: Build C++ Tests | |
if: matrix.cpp_tests == '1' | |
shell: bash -l {0} | |
run: | | |
cd cpp/out/linux-conda-release-build/ | |
make -j ${{ steps.cpu-cores.outputs.count }} arcticdb_rapidcheck_tests | |
make -j ${{ steps.cpu-cores.outputs.count }} test_unit_arcticdb | |
- name: Run C++ Tests | |
if: matrix.cpp_tests == '1' | |
shell: bash -l {0} | |
run: | | |
cd cpp/out/linux-conda-release-build/ | |
make test | |
- name: Install npm # Linux github runner image does not come with npm | |
if: matrix.os == 'linux' | |
uses: actions/[email protected] | |
with: | |
node-version: '16' | |
- name: Test with pytest | |
shell: bash -l {0} | |
if: matrix.python_tests == '1' | |
run: | | |
npm install -g azurite | |
cd python | |
python -m pytest tests | |
env: | |
ARCTICDB_USING_CONDA: 1 | |
macos: | |
strategy: | |
matrix: | |
include: | |
- os: macos-latest | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Get number of CPU cores | |
uses: SimenB/github-actions-cpu-cores@v1 | |
id: cpu-cores | |
- name: Install Conda environment from environment_unix.yml | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: environment_unix.yml | |
environment-name: arcticdb | |
init-shell: >- | |
bash | |
cache-environment: true | |
post-cleanup: 'all' | |
- name: Build ArcticDB with conda (ARCTICDB_USING_CONDA=1) | |
shell: bash -l {0} | |
run: | | |
# Protocol buffers compilation require not using build isolation. | |
python -m pip install --no-build-isolation --no-deps -v -e . | |
env: | |
ARCTICDB_USING_CONDA: 1 | |
# Using one thread to avoid swapping which might freeze the CI machine. | |
CMAKE_BUILD_PARALLEL_LEVEL: 1 | |
ARCTICDB_BUILD_CPP_TESTS: 1 | |
- name: Build C++ Tests | |
shell: bash -l {0} | |
run: | | |
cd cpp/out/darwin-conda-release-build/ | |
make -j ${{ steps.cpu-cores.outputs.count }} arcticdb_rapidcheck_tests | |
make -j ${{ steps.cpu-cores.outputs.count }} test_unit_arcticdb | |
- name: Run C++ Tests | |
shell: bash -l {0} | |
run: | | |
cd cpp/out/darwin-conda-release-build/ | |
make test | |
- name: Install npm | |
uses: actions/[email protected] | |
with: | |
node-version: '16' | |
- name: Test with pytest | |
shell: bash -l {0} | |
run: | | |
npm install -g azurite | |
cd python | |
python -m pytest tests | |
env: | |
ARCTICDB_USING_CONDA: 1 | |