Skip to content

Add BSD-3 license (#15) #49

Add BSD-3 license (#15)

Add BSD-3 license (#15) #49

Workflow file for this run

name: Tests
on: [push, pull_request]
# When this workflow is queued, automatically cancel any previous running
# or pending jobs from the same branch
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-latest"]
python-version: ["3.7", "3.8", "3.9"]
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
fetch-depth: 0 # Needed by codecov.io
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
channel-priority: strict
python-version: ${{ matrix.python-version }}
environment-file: continous_integeration/environment-${{ matrix.python-version }}.yaml
activate-environment: test-environment
auto-activate-base: false
- name: Install dask-deltatable
run: python -m pip install -e ".[dev]"
- name: Run tests
run: python -m pytest --junitxml=junit/test-results.xml --cov-report=xml tests
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
- name: Upload pytest test results
uses: actions/upload-artifact@v1
with:
name: pytest-results
path: junit/test-results.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}