Support single-container gRPC serving + HTTP proxy #80
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: Integrations | |
on: | |
pull_request: | |
paths: | |
- "nos/version.py" | |
push: | |
branches: [main] | |
paths: | |
- "nos/version.py" | |
workflow_call: | |
jobs: | |
docker-test-cpu: | |
name: Test CPU (Docker) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: true | |
matrix: | |
os: ["ubuntu-latest"] | |
python-version: ["3.8"] | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@master | |
- name: Build and test-cpu within docker container | |
run: make docker-test-cpu | |
# disabled for now | |
test-cpu-macos: | |
if: false | |
name: Test CPU (MacOS) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
strategy: | |
max-parallel: 1 | |
fail-fast: true | |
matrix: | |
os: ["macos-latest"] | |
python-version: ["3.8"] | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@master | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
auto-update-conda: true | |
activate-environment: nos-${{ matrix.os }}-${{ matrix.python-version }} | |
python-version: ${{ matrix.python-version }} | |
use-mamba: true | |
- uses: actions/cache@v3 | |
with: | |
path: /usr/share/miniconda3/envs/nos-${{ matrix.os }}-${{ matrix.python-version }} | |
key: conda-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements/requirements.txt') }}-${{ hashFiles('pyproject.toml') }}-${{ env.CACHE_NUMBER }} | |
id: cache | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}-${{ env.CACHE_NUMBER }} | |
- name: Install dependencies | |
run: make develop-cpu | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: Test | |
run: make test-cpu | |
# disabled for now, due to memory requirements | |
test-pixeltable-cpu: | |
if: false | |
name: Test Pixeltable CPU (Linux) | |
needs: [docker-test-cpu] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
strategy: | |
max-parallel: 1 | |
fail-fast: true | |
matrix: | |
os: ["ubuntu-latest"] | |
python-version: ["3.9"] | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@master | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
auto-update-conda: true | |
activate-environment: nos-pixeltable-${{ matrix.os }}-${{ matrix.python-version }} | |
python-version: ${{ matrix.python-version }} | |
use-mamba: true | |
- name: Install latest pixeltable and NOS | |
run: pip install git+https://github.com/mkornacker/pixeltable && pip install -e '.[test]' | |
- name: Test pixeltable integration | |
run: NOS_LOGGING_LEVEL=DEBUG pytest -sv tests/integrations/test_pixeltable.py |