summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2020-11-23 21:09:31 -0800
committerSeth Morton <seth.m.morton@gmail.com>2020-11-23 21:29:36 -0800
commitd4e8d277d02bf60f6932f0f749c4dd4f900460c2 (patch)
treee729b145f13a28a4848b1a3c53a9d0bad15d5d13
parentee5c341c0748b94c564ba7b622eaf644629f58f3 (diff)
downloadnatsort-d4e8d277d02bf60f6932f0f749c4dd4f900460c2.tar.gz
Test with ICU and fastnumbers
-rw-r--r--.github/workflows/tests.yml22
1 files changed, 18 insertions, 4 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index e0d7263..cb09bad 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -4,16 +4,18 @@ name: Tests
on: [push, pull_request]
jobs:
- no-extras:
- name: Tests Without Extras
+ tests:
+ name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest]
+ extras: [false]
include:
- - {python-version: 3.9, os: windows-latest}
- - {python-version: 3.9, os: macos-latest}
+ - {python-version: 3.9, os: windows-latest, extras: false}
+ - {python-version: 3.9, os: macos-latest, extras: false}
+ - {python-version: 3.9, os: ubuntu-latest, extras: true}
steps:
- name: Checkout code
@@ -24,10 +26,22 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
+ - name: Install Locales
+ if: matrix.os == 'ubuntu-latest'
+ run: sudo apt-get install language-pack-de language-pack-en
+
+ - name: Install ICU
+ if: matrix.extras
+ run: sudo apt-get install libicu-dev
+
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions codacy-coverage codecov
+ - name: Set Extras Environment
+ if: matrix.extras
+ run: echo WITH_EXTRAS=fast,icu >> $GITHUB_ENV
+
- name: Run Tests
run: tox