misken / hillmaker

Occupancy analysis by time of day and day of week, with Python
MIT License
6 stars 4 forks source link

tests randomly failing on Windows during GitHub Action #69

Closed misken closed 11 months ago

misken commented 11 months ago

For no reason, all of a sudden my automated tests on GH Actions were failing just on Windows but passing on Ubuntu. Some hunting led to this issue:

https://github.com/microsoft/azure-pipelines-tasks/issues/16426

Essentially the fix is specifying a non-tkinter matplotlib backend in the workflow. The suggested fix looks like:

jobs:
  tests:
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest]
    runs-on: ${{ matrix.os }}
    env:
      MPLBACKEND: Agg  # https://github.com/orgs/community/discussions/26434
     ...

After doing this, tests once again were passing on Windows.

misken commented 11 months ago

Fixed per above.