Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Refactor of sys.path swapping context manager, simplify multiprocessing contexts for parent and child process #59

Refactor of sys.path swapping context manager, simplify multiprocessing contexts for parent and child process

Refactor of sys.path swapping context manager, simplify multiprocessing contexts for parent and child process #59

name: Test flojoy_node_env
on:
push:
branches:
- "main"
paths:
- "flojoy/flojoy_node_venv.py"
- "tests/flojoy_node_venv_test_.py"
pull_request:
paths:
- "flojoy/flojoy_node_venv.py"
- "tests/flojoy_node_venv_test_.py"
workflow_dispatch:
jobs:
pytest:
strategy:
matrix:
os: [ubuntu, macos, windows]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Install pip dependencies
run: |
pip install ruff pytest
pip install -r requirements.txt
pip install -e .
- name: Run python tests
run: |
python -m pytest -vv tests/flojoy_node_venv_test_.py --runslow