Add remote and all options to branch #69
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: 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 |