• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

psf / black / 2275
96%

Build:
DEFAULT BRANCH: master
Ran 01 Nov 2020 09:20PM UTC
Jobs 5
Files 11
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2275

push

travis-ci

web-flow
Automatically build and upload binaries on release (#1743)

This commit adds a new GitHub Actions workflow that builds self-contained
binaries / executables and uploads them as release assets to the triggering
release. Publishing a release, drafting one doesn't count, will trigger this
workflow.

I personally used GitHub Actions only because it's the CI/CD platform(?)
I am familiar with. Only Windows and Linux binaries are supported since
I don't have any systems running Mac OS.

For Linux, I had originally planned to use the manylinux2010 docker image
the PyPA provides for highly compatible wheel building, but unfortunately
it wasn't feasible due to GitHub Actions and PyInstaller incompatibilities.
As a stopgap the oldest versions of Linux and Windows are used although
Windows Server 2019 isn't that old nor is Ubuntu 16.04! I guess someone
(maybe me) could work out something else if compatibility is big problem.

A few things you should know about the workflow:
 - You don't need to set the `GITHUB_TOKEN` secret as it is automatically
   provided by GitHub.
 - matrix.pathsep is used because PyInstaller configuration's format is OS
   dependent for some reason ...

Also it's worth mentioning that Black once had Travis CI and AppVeyor
configuration that did the same thing as this commit. They were committed
in mid 2018 and worked (somewhat) well. Eventually we stopped using AppVeyor
and the refactor to packages broke the Travis CI config. This commit
replaces the still existing and broken Travis CI config wholesale.

Co-authored-by: Anders Fredrik Kiær <31612826+anders-kiaer@users.noreply.github.com>

 - Anders told me that I could get the release asset upload URL directly
   from the github.event.release payload. I originally planned to use
   bruceadams/get-release to get such URL.

4561 of 4790 relevant lines covered (95.22%)

3.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2275.1 (TEST_CMD="pre-commit run --all-files --show-diff-on-failure") 01 Nov 2020 09:20PM UTC 0
0.0
Travis Job 2275.1
2 2275.2 (TEST_CMD="tox -e py") 01 Nov 2020 09:20PM UTC 0
94.95
Travis Job 2275.2
3 2275.3 (TEST_CMD="tox -e py") 01 Nov 2020 09:20PM UTC 0
94.95
Travis Job 2275.3
4 2275.4 (TEST_CMD="tox -e py") 01 Nov 2020 09:20PM UTC 0
95.04
Travis Job 2275.4
5 2275.5 (TEST_CMD="tox -e py") 01 Nov 2020 09:23PM UTC 0
95.02
Travis Job 2275.5
Source Files on build 2275
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2275
  • 74e51e6a on github
  • Prev Build on master (#1314)
  • Next Build on master (#1318)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc