diff options
author | Elliott Hughes <enh@google.com> | 2023-11-10 21:15:13 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-11-10 21:15:13 +0000 |
commit | d45d2337ec71b3fe51ddbfefb8c6e2aa0681b9ba (patch) | |
tree | c927c514a071f3a5ec125b3f474ad4ce4d39a7fa /.github/workflows/test.yml | |
parent | a97ebe6e953489aff62638641d871f7d6e755ca9 (diff) | |
parent | 02cec46c7a3918f19153e4e2de707f9d7de83fc8 (diff) | |
download | fonttools-d45d2337ec71b3fe51ddbfefb8c6e2aa0681b9ba.tar.gz |
Upgrade fonttools to 4.44.0 am: 02cec46c7a
Original change: https://android-review.googlesource.com/c/platform/external/fonttools/+/2826690
Change-Id: I89c63a7cd9a99a6ce4c767f36b786f7b5abae2a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r-- | .github/workflows/test.yml | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ce1c2d5..d97c77f2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,10 @@ on: permissions: contents: read +env: + # turns off tox's output redirection so we can debug package installation + TOX_OPTIONS: -vv + jobs: lint: runs-on: ubuntu-latest @@ -23,32 +27,34 @@ jobs: - name: Install packages run: pip install tox - name: Run Tox - run: tox -e mypy,package_readme + run: tox $TOX_OPTIONS -e lint,package_readme test: runs-on: ${{ matrix.platform }} if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" strategy: + fail-fast: false matrix: - python-version: ["3.7", "3.10"] - platform: [ubuntu-latest, macos-latest, windows-latest] - exclude: # Only test on the latest supported stable Python on macOS and Windows. + python-version: ["3.8", "3.11", "3.12"] + platform: [ubuntu-latest] + include: # Only test on the latest supported stable Python on macOS and Windows. - platform: macos-latest - python-version: 3.7 + python-version: 3.11 - platform: windows-latest - python-version: 3.7 + python-version: 3.11 steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install packages run: pip install tox coverage - name: Run Tox - run: tox -e py-cov - - name: Run Tox without lxml - run: tox -e py-cov-nolxml + run: tox $TOX_OPTIONS -e py-cov + - name: Run Tox without extra dependencies + run: tox $TOX_OPTIONS -e py-cov-noextra - name: Produce coverage files run: | coverage combine @@ -59,7 +65,10 @@ jobs: file: coverage.xml flags: unittests name: codecov-umbrella - fail_ci_if_error: true + # TODO(anthrotype): Set fail_ci_if_error: true if/when Codecov becomes less flaky + fail_ci_if_error: false + # see https://github.com/codecov/codecov-action/issues/557 + token: ${{ secrets.CODECOV_TOKEN }} test-cython: runs-on: ubuntu-latest @@ -69,11 +78,11 @@ jobs: - name: Set up Python 3.x uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - name: Install packages run: pip install tox - name: Run Tox - run: tox -e py-cy-nolxml + run: tox $TOX_OPTIONS -e py-cy test-pypy3: runs-on: ubuntu-latest @@ -83,8 +92,8 @@ jobs: - name: Set up Python pypy3 uses: actions/setup-python@v4 with: - python-version: "pypy-3.7" + python-version: "pypy-3.9" - name: Install packages run: pip install tox - name: Run Tox - run: tox -e pypy3-nolxml + run: tox $TOX_OPTIONS -e pypy3 |