Commit Graph

331 Commits

Author SHA1 Message Date
Florian Bruhin 8023b8c8fe ci: Lock down workflows
Closes #6430
2021-04-28 23:01:43 +02:00
Florian Bruhin 0c1414c6aa ci: Pin Python 3.10 to Alpha 7
See https://github.com/actions/setup-python/issues/207

pytest isn't ready yet:
https://github.com/pytest-dev/pytest/issues/8539
2021-04-19 11:43:37 +02:00
Florian Bruhin a0710124a1 ci: Tune down code scanning
Too many false positives, and it seems impossible to ignore a single rule.
2021-04-10 09:15:38 +02:00
Florian Bruhin f22ea9b81d ci: Try additional CodeQL queries 2021-04-09 10:03:47 +02:00
Florian Bruhin 545a295cf0 ci: Move test_mkvenv.py to update-dependencies
It requires some time and network access, so no need to run it as part of the automated tests.
2021-03-31 13:10:09 +02:00
Florian Bruhin bce20c2995 scripts: Add --debug to build_release.py 2021-03-29 23:42:14 +02:00
Florian Bruhin 2a545400f8 ci: Try debug builds 2021-03-29 23:42:14 +02:00
Florian Bruhin 78ce753b09 ci: Move macOS dmg to dist/ 2021-03-29 23:42:14 +02:00
Florian Bruhin 99f419c97d ci: Rename artifact 2021-03-29 23:42:14 +02:00
Florian Bruhin c6118aa4aa ci: Upload release files 2021-03-29 23:42:14 +02:00
Florian Bruhin 498ff53463 ci: Split 32/64bit pyinstaller envs 2021-03-29 23:42:14 +02:00
Florian Bruhin 8a0d7a5be8 scripts: Pass GitHub token via commandline args 2021-03-29 23:42:14 +02:00
Florian Bruhin e10214a726 ci: Fix asciidoc
Unfortunately, GitHub won't let us clone asciidoc to ../asciidoc :(
2021-03-29 23:42:14 +02:00
Florian Bruhin a93b1f00c9 ci: Try docs as well 2021-03-29 23:42:14 +02:00
Florian Bruhin 353b27df53 ci: Add PyInstaller env
Closes #6338
2021-03-29 23:42:09 +02:00
Florian Bruhin e017927173 ci: Run bleeding-edge CI daily for now 2021-03-29 18:44:17 +02:00
Florian Bruhin 18d6c46e3d notifications: Adjust/fix CI 2021-03-24 16:38:59 +01:00
Florian Bruhin 2f592f7ce6 Merge remote-tracking branch 'origin/pr/5457' into dev 2021-03-24 14:12:36 +01:00
Florian Bruhin 36696bfa2c ci: Add bleeding-edge environment
Closes #6298
2021-03-22 20:22:48 +01:00
Florian Bruhin 30d54c8da4 Revert "ci: Use different workaround for Archlinux docker"
This reverts commit 545e37b913.
Doesn't actually seem to work...
2021-02-18 10:15:43 +01:00
Florian Bruhin 545e37b913 ci: Use different workaround for Archlinux docker 2021-02-16 11:24:40 +01:00
Florian Bruhin 277eb3012e ci: Use v1 of irc-message-action again
https://github.com/Gottox/irc-message-action/issues/5 is fixed
2021-02-10 19:55:18 +01:00
Florian Bruhin 357887c25e ci: Fix docker IRC message 2021-02-10 19:53:39 +01:00
Florian Bruhin bc0936d97a ci: Use Python 3.9 for Windows/macOS
That's what we use with the newer PyInstaller releases, too.
2021-01-27 19:24:17 +01:00
Florian Bruhin ab01b3970f ci: Add Python 3.10
Needs a couple of follow-up commits for workarounds, which hopefully
aren't needed anymore at a later point.

Fixes #6068
2021-01-26 20:32:57 +01:00
Florian Bruhin 5c23ac8429 ci: Test Ubuntu 18.04
See #5551
2021-01-09 14:20:09 +01:00
Florian Bruhin c628e1430c ci: Remove macOS Big Sur for now
See https://github.com/actions/virtual-environments/issues/841
2021-01-08 10:07:05 +01:00
Florian Bruhin 47f2093b50 ci: Add qute-pylint to cache key
This makes sure we don't use a stale qute_pylint version in CI.
2021-01-02 15:59:05 +01:00
Florian Bruhin 77c5fb888f ci: Simplify CodeQL workflow 2020-12-07 19:09:22 +01:00
Florian Bruhin 83286f9456 ci: Don't run docker job in forks 2020-12-03 16:21:36 +01:00
Florian Bruhin 6274028872 ci: Also use Python in PATH in ci.yml
Follow-up to df7e0553d8
2020-12-03 11:10:16 +01:00
Florian Bruhin 64c1c03d5b ci: Add Qt 5.15.0
We test Qt 5.15.2, but that's based on a newer Chromium version:

Qt 5.14.x -> Chromium 77
Qt 5.15.0 -> Chromium 80
Qt 5.15.2 -> Chromium 83

Some behavior changes between Chromium versions (see e.g. #5915), so it
makes sense to test both.

Picking 5.15.0 rather than .1 due to renderer process crashes in
5.15.1 (#5721). Doesn't matter much on the CI as we don't use WebRTC,
but if someone wants to downgrade with mkvenv.py for some reason, .0
will be more useful than .1.
2020-12-03 10:15:14 +01:00
Florian Bruhin 6a9f3d6cf5 Revert "ci: Try semgrep"
This reverts commit 7c1f177572.
Worked on dev, now broken on master?
2020-11-26 22:05:57 +01:00
Florian Bruhin 7c1f177572 ci: Try semgrep 2020-11-25 22:41:15 +01:00
Florian Bruhin 31cd414664 ci: Fix lint for docker workflow 2020-11-25 22:34:18 +01:00
Florian Bruhin a686b75922 ci: Fix docker working directory 2020-11-25 22:34:18 +01:00
Florian Bruhin ec93c0458c Integrate docker rebuild workflow 2020-11-25 19:49:25 +01:00
Florian Bruhin feff463bf1 ci: Add macOS Big Sur
See #5663 and #5896 (which we don't test for at the moment)
2020-11-24 14:06:42 +01:00
Florian Bruhin f7b66a583e Revert "ci: Downgrade to Ubuntu 18.04 for CodeQL env"
This reverts commit 74ad8fd545.
2020-11-23 20:18:12 +01:00
Florian Bruhin c58788935f ci: Upgrade create-pull-request action to v3 2020-11-23 09:08:08 +01:00
Florian Bruhin 74ad8fd545 ci: Downgrade to Ubuntu 18.04 for CodeQL env
It emits a setup warning because of a missing Python 2 pip otherwise:
https://github.com/github/codeql-action/pull/316
2020-11-20 16:51:15 +01:00
Florian Bruhin bf6cda5a9c ci: Be explicit about Ubuntu version
There currently are warnings about ubuntu-latest soon being 20.04 rather
than 18.04. For those environments, we don't actually care about the
underlying OS (linters/codeql/irc should work no matter what), but it's
still good to be explicit about the OS choice. This avoids the warnings
and makes things more predictable. Also, updating it once every 2
years (for Ubuntu LTS releases) shouldn't be a big issue.
2020-11-20 11:48:00 +01:00
Florian Bruhin cc8de06082 ci: Update Python/Qt versions 2020-11-04 18:30:04 +01:00
Florian Bruhin cc2d73b061 old qt: Drop CI 2020-11-04 11:30:54 +01:00
Florian Bruhin 5ad2491cf5 ci: Drop -dev suffix for Python 3.9 2020-10-28 14:25:36 +01:00
Florian Bruhin 685a66280a Initial drop of Python 3.5
See #4800
2020-10-26 15:50:54 +01:00
Florian Bruhin fa5e04fdaf Remove dependabot for GitHub Actions
- It only seems to catch some dependencies, not all
- Its PRs (without batching) are kind of noisy
- Despite the GitHub docs saying otherwise, it seems to open PRs for
  forks...
- GitHub Actions seem to use semantic versioning pretty much
  consistently, so this should hopefully work out without explicit
  pinning.
2020-10-15 14:04:56 +02:00
Florian Bruhin 61bf76c29e ci: Avoid deprecated ::add-path
See https://github.com/actions/toolkit/security/advisories/GHSA-mfwh-5m23-j46w
2020-10-05 21:05:37 +02:00
dependabot[bot] 76eae19706
Bump actions/setup-python from v2.1.2 to v2.1.3
Bumps [actions/setup-python](https://github.com/actions/setup-python) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2.1.2...c181ffa198a1248f902bc2f7965d2f9a36c2d7f6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-02 07:43:57 +00:00
dependabot[bot] 03fb66f0e1
Bump actions/setup-node from v2.1.1 to v2.1.2
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.1 to v2.1.2.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.1...c6fd00ceb9747fb23ffdf72987450a2664414867)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-02 05:38:06 +00:00
Florian Bruhin ca2cc01e14 ci: Pin irc-message-action to v1.1
See https://github.com/Gottox/irc-message-action/issues/5
2020-09-25 20:01:00 +02:00
dependabot[bot] 0efd3f81bc
Bump codecov/codecov-action from v1.0.12 to v1.0.13
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.12 to v1.0.13.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Commits](https://github.com/codecov/codecov-action/compare/v1.0.12...6004246f47ab62d32be025ce173b241cd84ac58e)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-18 05:19:23 +00:00
dependabot[bot] a1d122741f
Bump actions/setup-python from v2.1.1 to v2.1.2
Bumps [actions/setup-python](https://github.com/actions/setup-python) from v2.1.1 to v2.1.2.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2.1.1...24156c231c5e9d581bde27d0cdbb72715060ea51)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-12 05:28:39 +00:00
Florian Bruhin defd18d963 Use Python 3.9 on CI 2020-08-11 13:18:35 +02:00
Florian Bruhin 41bcada133 Merge branch 'master' into pr/5457 2020-07-31 14:35:59 +02:00
Florian Bruhin e521964ab6 ci: Remove unneeded line for IRC notifications 2020-07-30 22:26:50 +02:00
Florian Bruhin 5e394cb53f ci: Improve IRC notifications
Should probably move this in a separate action at some point and do this in
code instead :D

[ci skip]
2020-07-30 22:06:59 +02:00
Florian Bruhin 02f1105f3d ci: Avoid double builds 2020-07-28 23:22:49 +02:00
Florian Bruhin ecfb8b5607 ci: Add skipping 2020-07-27 10:18:57 +02:00
Florian Bruhin 06dc39e7a8 Merge remote-tracking branch 'origin/pr/5616' 2020-07-23 11:27:41 +02:00
Florian Bruhin 1daa863218 Add yamllint 2020-07-23 11:21:04 +02:00
dependabot[bot] a9e14c99d8
build(deps): Bump codecov/codecov-action from v1.0.11 to v1.0.12
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.11 to v1.0.12.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Commits](https://github.com/codecov/codecov-action/compare/v1.0.11...07127fde53bc3ccd346d47ab2f14c390161ad108)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-23 06:01:48 +00:00
dependabot[bot] e49fb97a74
build(deps): Bump actions/setup-node from v2.1.0 to v2.1.1
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.0 to v2.1.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.0...321b6ccb03083caa2ad22b27dc4b45335212e824)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-22 06:06:43 +00:00
dependabot[bot] 017ab173cd
build(deps): Bump actions/setup-python from v2 to v2.1.1
Bumps [actions/setup-python](https://github.com/actions/setup-python) from v2 to v2.1.1.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...0c28554988f6ccf1a4e2818e703679796e41a214)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-21 06:00:37 +00:00
Florian Bruhin 4bd883905f ci: Bump up timeouts for linters
For some reason, the cache can be pretty slow?
2020-07-20 11:09:22 +02:00
Florian Bruhin 0ebed403e3 ci: Fix/improve update requirements workflow
- Set up Python 3.7 and 3.8
- Add workflow dispatch event to trigger the update
- Add IRC notification
2020-07-20 09:28:42 +02:00
dependabot[bot] 7a7c764d39
build(deps): Bump codecov/codecov-action from v1.0.10 to v1.0.11
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.10 to v1.0.11.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Commits](https://github.com/codecov/codecov-action/compare/v1.0.10...6d208f5b527841fb050f92f778e86cb808dacdcb)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-20 06:01:40 +00:00
Florian Bruhin c51e8b22d2 ci: Only update dependencies in main repo 2020-07-17 15:32:22 +02:00
Florian Bruhin fa9353538b ci: Add timeouts for jobs 2020-07-17 10:06:22 +02:00
Florian Bruhin 13fc4604ba ci: Run apt-get update 2020-07-16 14:40:02 +02:00
Florian Bruhin 1aeefe1968 ci: Disable mypy coloring again
Looks like mypy uses curses to get colors, so there's really nothing we can do
here on GitHub Actions.
2020-07-13 22:34:51 +02:00
Florian Bruhin 42eebc0776 ci: Simplify IRC notification text 2020-07-13 22:28:13 +02:00
Florian Bruhin f82c8cb5fe ci: Improve mypy output
- Set MYPY_FORCE_TERMINAL_WIDTH to get 180-column output (rather than 80), so
  that error messages fit on one line.
- Set MYPY_FORCE_COLOR to get colored output
- Adjust problemmatcher regex accordingly
2020-07-13 22:16:42 +02:00
Florian Bruhin 033baad2f2 ci: Fix committer typo 2020-07-13 08:01:25 +02:00
Ash 9d22536b99 Fix running on windows. 2020-07-08 19:08:34 -07:00
Ash 2f6a48c74b Run tests inside dbus-run-session.
We need a dbus server, and this is the easiest way to make sure we have
one.
2020-07-08 19:02:05 -07:00
Florian Bruhin 2130af688a ci: Use PY_COLORS to force colored output
This should also color tox output, and it doesn't conflict with PYTEST_ADDOPTS
being used for coverage options.
2020-07-08 17:20:43 +02:00
Florian Bruhin 17b3eb7704 ci: Only run IRC notification in main repository
Not in people's custom forks
2020-07-08 15:43:06 +02:00
Florian Bruhin e579708549 ci: Fix IRC colors 2020-07-06 20:17:04 +02:00
Florian Bruhin 977ec3eebb ci: Remove IRC colors again
Really doesn't work, and I should play around with this in a branch rather than
master (sorry!).
2020-07-06 16:27:01 +02:00
Florian Bruhin f3234f3f2f ci: Try colored IRC text again 2020-07-06 15:48:58 +02:00
Florian Bruhin ffb34c3034 ci: Upgrade shellcheck version
Gets the latest shellcheck binary release.
Closes #5567
2020-07-06 15:44:48 +02:00
Florian Bruhin 53203a8ed6 ci: Remove unneeded IRC output line 2020-07-06 14:56:03 +02:00
Florian Bruhin 00b8d03fa3
Merge pull request #5572 from qutebrowser/dependabot/github_actions/codecov/codecov-action-v1.0.10
build(deps): Bump codecov/codecov-action from v1 to v1.0.10
2020-07-06 14:21:41 +02:00
dependabot[bot] 4e3a405ab8
build(deps): Bump actions/setup-node from v1 to v2.1.0
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v1 to v2.1.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1...1ae8f4b1fd89676f69b55d3dd6932b6df089ff7b)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-06 11:57:18 +00:00
dependabot[bot] 69c94950c9
build(deps): Bump codecov/codecov-action from v1 to v1.0.10
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1 to v1.0.10.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...f3570723ef743f6942b6a480461ed0cd6c0f9baa)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-06 11:57:17 +00:00
Florian Bruhin 70806b303c ci: Remove colors from IRC output
Doesn't seem to work like this...
2020-07-06 13:54:53 +02:00
Florian Bruhin 09b588f672 ci: Try better IRC notification 2020-07-06 13:15:45 +02:00
Florian Bruhin b1fb55ea67 ci: Remove experimental Qt 5.7 job
It really seems to fail every time, and GitHub's UI still prominently shows the
failure.
2020-07-03 19:14:39 +02:00
Florian Bruhin 189a54d4d6 ci: Fix running problemmatcher script on Windows 2020-07-03 18:56:54 +02:00
Florian Bruhin 34f66cf4a8 problemmatcher: Take temporary directory as argument
Hopefully fixes things on Docker
2020-07-03 18:56:54 +02:00
Florian Bruhin 2511c3cea4 ci: Write problem matchers for Python/pytest exceptions 2020-07-03 18:56:54 +02:00
Florian Bruhin ae188463d4 ci: Don't fail on coverage upload
Seems to fail randomly...
2020-07-03 18:56:54 +02:00
Florian Bruhin 8c009998f9 ci: Try to add IRC notification 2020-07-03 18:56:54 +02:00
Florian Bruhin abfd47f31b ci: Get rid of install.sh 2020-07-03 18:56:54 +02:00
Florian Bruhin fdfb29c992 CI: Improve apt installation 2020-07-03 18:56:54 +02:00
Florian Bruhin bd4a9030aa ci: Analyze backtraces on GitHub Actions 2020-07-03 18:55:46 +02:00
Florian Bruhin 8779a941c3 ci: Move PyQt 3.7 test to Travis
For some reason, we get segfaults on exit on GitHub Actions (and also locally),
but not on Travis...
2020-07-03 18:55:46 +02:00
Florian Bruhin edf3adf1e8 ci: Get rid of run.sh
Instead, run tox directly from ci.yml and have an args matrix variable there.
This also changes the macOS args to only run unit tests, like on Travis.
2020-07-03 18:55:46 +02:00
Florian Bruhin fcd58000ca ci: Don't run two Qt 5.7 environments 2020-07-03 18:55:46 +02:00
Florian Bruhin 6b77e1af99 ci: Add Windows/macOS 2020-07-03 18:55:46 +02:00
Florian Bruhin a8d12c8826 ci: Add CodeQL to ci.yml 2020-07-03 18:55:46 +02:00
Florian Bruhin 517858ddd8 ci: Set up caching 2020-07-03 18:55:46 +02:00
Florian Bruhin 86ef7641bc ci: Try PyQt 5.7 again 2020-07-03 15:04:31 +02:00
Florian Bruhin 7f1ced0e43 ci: Set up nightly Python 2020-07-03 15:04:31 +02:00
Florian Bruhin 820c3e30d6 ci: Upload coverage via GitHub Actions
See #4976
2020-07-03 15:04:31 +02:00
Florian Bruhin 65a610c3bf tests: Widen disable-bpf-sandbox argument
This should fix tests with newer kernels/glibc's with Qt versions before
5.14.1.
2020-07-03 11:43:19 +02:00
Florian Bruhin 49a19a50cb ci: Move Qt 5.13 back to Travis
We get another seccomp-bpf failure there
2020-07-02 22:42:30 +02:00
Florian Bruhin da4221f99e ci: Finish partial move to GitHub actions 2020-07-02 22:21:24 +02:00
Florian Bruhin 64d282e73b ci: Force colors 2020-07-02 22:21:24 +02:00
Florian Bruhin a42892d203 ci: Install more apt packages 2020-07-02 22:21:07 +02:00
Florian Bruhin f93c1d73ce ci: Reorder matrix values
Gets us better names on GitHub Actions
2020-07-02 22:21:07 +02:00
Florian Bruhin 7ec1d08a10 ci: Add Linux/tox tests to GitHub Actions 2020-07-02 22:21:07 +02:00
Florian Bruhin 8d1a8540c5 ci: Force pytest colors for CI
For some reason, pytest on GitHub doesn't display any colors.
2020-07-02 22:21:07 +02:00
Florian Bruhin 33b5db97e7 ci: Add --tty for docker
Enables colored output
2020-07-02 22:21:07 +02:00
Florian Bruhin 57b3b7bd5b ci: Disable linters 2020-07-02 22:21:07 +02:00
Florian Bruhin 1abba06dc6 ci: Try adding tests-docker 2020-07-02 22:21:07 +02:00
Florian Bruhin 07a30c0092 ci: Set up problem matchers 2020-07-02 22:21:07 +02:00
Florian Bruhin 68b245aa6f Add initial GitHub Actions config for linters 2020-07-02 14:45:02 +02:00
Florian Bruhin 326932d01a ci: Update time for recompile-requirements workflow 2020-06-30 18:57:37 +02:00
Florian Bruhin 1425ed75f6 ci: Update scheduled time for testing 2020-06-30 18:39:45 +02:00
Florian Bruhin a322dabc71 ci: Update scheduled time for testing 2020-06-30 18:35:46 +02:00
Florian Bruhin a643946443 ci: Update time for recompile-requirements action 2020-06-30 18:20:26 +02:00
Florian Bruhin 1d43f57fed scripts: Improve output in recompile_requirements 2020-06-30 17:59:37 +02:00
Florian Bruhin 70e4b4bc7b scripts: Improve output while recompiling requirements 2020-06-30 17:59:37 +02:00
Florian Bruhin 3e7a72f209 scripts: Update output when recompiling requirements 2020-06-30 17:59:37 +02:00
Florian Bruhin dae0a8002f scripts: Add changed requirement files 2020-06-30 17:59:37 +02:00
Florian Bruhin 14823c5d7d ci: Improve requirements updates action 2020-06-30 17:59:37 +02:00
Florian Bruhin 9abc688121 ci: Add action for updating requirements 2020-06-30 17:59:37 +02:00
Florian Bruhin 7cbc447c55 Code scanning: Exclude C++ 2020-06-15 20:27:44 +02:00
Florian Bruhin e39b2335d6
Create codeql-analysis.yml 2020-06-15 20:24:13 +02:00