Skip to content

Poetry install pypi release #68

Poetry install pypi release

Poetry install pypi release #68

Workflow file for this run

name: unit_tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- ".github/workflows/unit_tests.yml"
- "doltcli/**"
- "scripts/**"
- "tests/**"
- "requirements/development.txt"
- "pyproject.toml"
jobs:
unit_tests:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10']
os: [ubuntu-latest, windows-latest]
dolt-version: ['1.7.5']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dolt Windows
if: ${{ runner.os == 'Windows' }}
run: |
choco install dolt --version=${{ matrix.dolt-version }}
$env:Path += ';C:\Program Files\Dolt\bin\'
dolt config --global --add user.email [email protected]
dolt config --global --add user.name "Bojack Horseman"
- name: Install Dolt Linux
if: ${{ runner.os == 'Linux' }}
run: |
sudo curl -L https://github.com/dolthub/dolt/releases/download/v${{ matrix.dolt-version }}/install.sh | sudo bash
dolt config --global --add user.email [email protected]
dolt config --global --add user.name "Bojack Horseman"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov
- name: Run Linux Tests
if: ${{ runner.os == 'Linux' }}
run: |
pytest -v tests --cov=doltcli --cov-report=term --cov-report xml
- name: Run Windows Tests
if: ${{ runner.os == 'Windows' }}
run: |
$env:Path += ';C:\Program Files\Dolt\bin\'
pytest -v tests