name: Tests

# Run this workflow every time a new commit pushed to your repository
on: [push, pull_request]

jobs:
  no-extras:
    name: Tests Without Extras
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
        os: [ubuntu-latest]
        include:
          - {python-version: 3.9, os: windows-latest}
          - {python-version: 3.9, os: macos-latest}

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}

      - name: Install Dependencies
        run: |
          python -m pip install --upgrade pip
          python -m pip install tox tox-gh-actions codacy-coverage codecov

      - name: Run Tests
        run: tox

name: Tests

# Run this workflow every time a new commit pushed to your repository
on: [push, pull_request]

jobs:
  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, extras: false}
          - {python-version: 3.9, os: macos-latest, extras: false}
          - {python-version: 3.9, os: ubuntu-latest, extras: true}

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        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

Test with ICU and fastnumbers
Test with ICU and fastnumbers
