Jupyterlab 4 manually #4433
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 - mitosheet pytest | |
on: | |
push: | |
branches: [ dev ] | |
paths: | |
- 'mitosheet/**' | |
pull_request: | |
paths: | |
- 'mitosheet/**' | |
jobs: | |
test-mitosheet-python: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: [3.8, 3.11] | |
pandas-version: ['0.24.2', '1.1.5', '1.3.5'] | |
optional_feature_dependencies: [False, True] | |
exclude: | |
- python-version: 3.8 | |
pandas-version: '0.24.2' | |
- python-version: 3.11 | |
pandas-version: '0.24.2' | |
- python-version: 3.11 | |
pandas-version: '1.1.5' | |
- python-version: 3.11 | |
pandas-version: '1.3.5' | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.7.0 | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: mitosheet/setup.py | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
cache-dependency-path: mitosheet/package-lock.json | |
- name: Install dependencies | |
run: | | |
cd mitosheet | |
pip install "pandas==${{ matrix.pandas-version }}" | |
pip install -e ".[test]" | |
- name: Install optional feature dependencies | |
if: ${{ matrix.optional_feature_dependencies }} | |
run: | | |
cd mitosheet | |
pip install -e ".[optional_feature_dependencies]" | |
- name: Install JS dependencies and build | |
run: | | |
cd mitosheet | |
jlpm install | |
jlpm run build | |
- name: Test with pytest | |
run: | | |
cd mitosheet | |
pytest | |
env: | |
SNOWFLAKE_USERNAME: ${{ secrets.PYTEST_SNOWFLAKE_USERNAME }} | |
SNOWFLAKE_PASSWORD: ${{ secrets.PYTEST_SNOWFLAKE_PASSWORD }} | |
SNOWFLAKE_ACCOUNT: ${{ secrets.PYTEST_SNOWFLAKE_ACCOUNT }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |