This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
Use portalocker
to prevent multiple processes from bootstrapping the same env
#102
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: 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 -s tests/flojoy_node_venv_test_.py --runslow |