Update README for the modern era #62
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: CI tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
# Need to set this to avoid pipenv syncing an entire LFS repo and failing with bandwidth quota (see | |
# https://github.com/the-grey-group/datalab/issues/603) | |
GIT_LFS_SKIP_SMUDGE: 1 | |
jobs: | |
pytest: | |
name: Run Python unit tests | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install MDBTools OS dependency | |
run: | | |
sudo apt install -y mdbtools | |
- name: Install latest compatible versions of immediate dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U setuptools | |
pip install pipenv | |
pipenv install --dev | |
pipenv run pip install -e . | |
- name: Run all tests | |
run: | | |
pipenv run pytest -rs -vvv ./tests |