update Glottolog v5.0 checksum for pycountry 23.12.11 #326
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: Build | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: linux-3.12-full | |
python-version: "3.12" | |
args: "--run-writes" | |
extra: ",pandas" | |
os: ubuntu-latest | |
- name: linux-3.12-full-master | |
python-version: "3.12" | |
args: "--glottolog-tag=master --run-writes" | |
extra: ",pandas" | |
os: ubuntu-latest | |
- name: windows-3.12-full | |
python-version: "3.12" | |
args: "--run-writes" | |
extra: ",pandas" | |
os: windows-latest | |
- name: linux-3.11-quick-lint | |
python-version: "3.11" | |
args: "--skip-slow --exclude-raw" | |
extra: ",pandas" | |
os: ubuntu-latest | |
- name: linux-3.10-quick | |
python-version: "3.10" | |
args: "--skip-slow --exclude-raw" | |
extra: ",pandas" | |
os: ubuntu-latest | |
- name: linux-3.9-quick | |
python-version: "3.9" | |
args: "--skip-slow --exclude-raw" | |
extra: ",pandas" | |
os: ubuntu-latest | |
- name: linux-3.8-quick | |
python-version: "3.8" | |
args: "--skip-slow --exclude-raw" | |
extra: ",pandas" | |
os: ubuntu-latest | |
steps: | |
- name: Check/configure long paths (if windows) | |
if: ${{ startsWith(matrix.os, 'windows-') }} | |
run: | | |
echo "::group::Check HKLM:System\CurrentControlSet\Control\FileSystem.LongPathsEnabled" | |
(Get-ItemProperty HKLM:System\CurrentControlSet\Control\FileSystem).LongPathsEnabled | |
echo "::endgroup::" | |
echo "::group::Run git config --system core.longpaths true" | |
git config --system core.longpaths true | |
echo "::endgroup::" | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Pip install dependencies | |
run: | | |
echo "::group::Run python -m pip install --upgrade pip setuptools wheel" | |
python -m pip install --upgrade pip setuptools wheel | |
echo "::endgroup::" | |
echo "::group::Run pip install .[test,pretty${{ matrix.extra }}] flake8" | |
pip install .[test,pretty${{ matrix.extra }}] flake8 | |
echo "::endgroup::" | |
- name: Pip downgrade sqlalchemy to 1.0 version (if -sa1) | |
if: ${{ contains(matrix.name, '-sa1') }} | |
run: | | |
echo "::group::Run python -m pip install \"sqlalchemy<2\"" | |
python -m pip install "sqlalchemy<2" | |
echo "::endgroup::" | |
- name: Run tests with ${{ matrix.args }} | |
run: python run-tests.py ${{ matrix.args }} | |
- name: Check Glottolog version | |
run: echo "::notice::$(python -c 'import treedb; print(treedb.glottolog_version())')" | |
- name: Run try-treedb.py (if -full) | |
if: ${{ contains(matrix.os, '-full') }} | |
run: | | |
echo "::group::Run try-treedb.py"; FAILED=0; | |
python try-treedb.py || FAILED=$? | |
echo "::endgroup::" | |
[ $FAILED -eq 0 ] || echo "::warning::try-treedb.py failed with exit code $FAILED" | |
shell: bash | |
- name: Run lint-code.py (if -lint) | |
if: ${{ contains(matrix.name, '-lint') }} | |
run: | | |
echo "::group::Run lint-code.py --version" | |
echo "$(python lint-code.py --version)" | |
echo "::endgroup::" | |
echo "::group::Run lint-code.py"; FAILED=0; python lint-code.py || FAILED=$?; echo "::endgroup::" | |
[ $FAILED -eq 0 ] || echo "::warning::lint-code.py failed with exit code $FAILED" | |
shell: bash | |
- name: Upload ${{ matrix.name }} artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.name }} | |
path: | | |
treedb.log | |
treedb*.sqlite3 | |
treedb*.jsonl | |
treedb*.csv |