Commit Graph

138 Commits

Author SHA1 Message Date
Šarūnas Nejus
35dcfe508a Configure integrated lyrics tests to only run on lyrics code changes 2025-01-19 01:48:03 +00:00
Šarūnas Nejus
fc49902f3a Refactor lyrics backend tests to use pytest fixtures
- Replaced unittest.mock with pytest fixtures for better test isolation and readability.
- Simplified test cases by using parameterized tests.
- Added `requests-mock` dependency to `pyproject.toml` and `poetry.lock`.
- Removed redundant helper functions and classes.
2025-01-19 01:33:15 +00:00
Šarūnas Nejus
044712b796 Add now missing libcairo dependency
Thanks GitHub for breaking workflows out of thin air.
2025-01-13 06:58:30 +00:00
Šarūnas Nejus
5fc92c98da Make sure release script is tested on Ubuntu 2025-01-12 05:12:29 +00:00
Šarūnas Nejus
eb557f720d Resolve all URLs for markdown 2024-12-28 07:26:04 +00:00
Šarūnas Nejus
555cf322db Remove the temporary testing workflow 2024-12-28 07:26:04 +00:00
Šarūnas Nejus
7b9625bc86 Test rst to md conversion 2024-12-28 07:24:22 +00:00
Šarūnas Nejus
13e83cdce3 🤦 2024-12-28 07:24:22 +00:00
Šarūnas Nejus
914dbcb420 Cache deps 2024-12-28 07:24:22 +00:00
Šarūnas Nejus
aff43d8d62 Remove poe output 2024-12-28 07:24:22 +00:00
Šarūnas Nejus
ef4e98389c Add test for changelog formatting 2024-12-28 07:24:17 +00:00
Šarūnas Nejus
7be8f9c97a Update CI config, minimum ruff version, docs and add changelog note 2024-12-10 06:10:03 +00:00
Šarūnas Nejus
71eb1bca68 Release: create tag right after commit version update 2024-12-10 05:51:13 +00:00
Šarūnas Nejus
01f1fafc88 Release: do not fail when mastodon auth fails 2024-12-02 06:55:56 +00:00
Šarūnas Nejus
a7f00eaf13 Fix missing changelog in the release notes
Seems like this is the missing bit:
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#using-job-outputs-in-a-matrix-job
2024-11-26 15:59:41 +00:00
Šarūnas Nejus
9c4d4d9632 Include test files, manual to sdist 2024-11-26 15:38:13 +00:00
Šarūnas Nejus
db71444fe7 Disable OIDC for coverage uploads from forks
This is based on the following comment:
https://github.com/codecov/codecov-action/issues/1594#issuecomment-2394913029
2024-11-23 01:13:16 +00:00
Šarūnas Nejus
979f1239ca Revert "Release: temporarily ignore errors with bumping version and pypi push"
This reverts commit cf3acec555.
2024-11-22 02:13:29 +00:00
Šarūnas Nejus
0780bf386c Release: make sure release artefacts are present for the tagging job 2024-11-22 02:05:36 +00:00
Šarūnas Nejus
cf3acec555 Release: temporarily ignore errors with bumping version and pypi push 2024-11-22 01:58:26 +00:00
Šarūnas Nejus
4a5b9a26f1 Release: fix github-tag-action version 2024-11-22 01:57:10 +00:00
Šarūnas Nejus
7488c94d38 Release: try checking out the master branch 2024-11-22 01:49:46 +00:00
Šarūnas Nejus
c6c4afa543 Release: Make sure to checkout the new commit with bumped version 2024-11-22 01:22:47 +00:00
Šarūnas Nejus
ea6ddde351 Fix changelog retrieval workflow step 2024-11-22 00:59:50 +00:00
Šarūnas Nejus
6180ce1973 Revert "ci: Replace pull_request with pull_request_target"
This was a very bad idea since this made CI operate within the context
of the *base* branch, which meant that the tests were testing code in
the `master` branch instead of the branch that was to be merged!
2024-10-30 12:27:44 +00:00
Šarūnas Nejus
826783d4c3 Define docs dependencies as an extra
Seems like readthedocs build expects docs dependencies to be available
as an extra, see one of the failing builds: https://app.readthedocs.org/projects/beets/builds/26079213/.

You can see this has been failing due to missing 'pydata_sphinx_theme':

    raise ThemeError(__('no theme named %r found (missing theme.toml?)') % name)
    sphinx.errors.ThemeError: no theme named 'pydata_sphinx_theme' found (missing theme.toml?)
    Theme error:
    no theme named 'pydata_sphinx_theme' found (missing theme.toml?)
2024-10-30 11:55:55 +00:00
Šarūnas Nejus
9023ff5fd4 ci: Replace pull_request with pull_request_target
This makes the coverage token available in forks.
2024-10-20 17:05:44 +01:00
Šarūnas Nejus
06a5ecaf80 Replace isort and black by ruff format 2024-09-21 11:29:24 +01:00
Šarūnas Nejus
f8ef22348b Replace flake8 by ruff 2024-09-21 11:28:43 +01:00
Šarūnas Nejus
06ca500ff2 Do not install reflink for tests on Windows 2024-09-04 18:56:19 +01:00
Šarūnas Nejus
111686e563 autobpm: add tests 2024-08-19 22:44:17 +01:00
Šarūnas Nejus
29da72b1d9 Show source files on codecov
While the commit merged yesterday fixed the coverage upload to
coveralls, it broke the source files preview on the platform.

This was due to the missing actions/checkout step in the coverage upload
job.
2024-06-16 18:24:48 +01:00
Šarūnas Nejus
3e075f2a9a Add 'test-with-coverage' command
And do not measure coverage by default.
2024-06-15 23:52:18 +01:00
Šarūnas Nejus
494c67603a Fix running tests with/without coverage (#5309)
Apparently the `!` operator does not exist in GitHub Actions.

Also fix coverage upload.
2024-06-15 10:15:53 +01:00
Šarūnas Nejus
30d345dd7d Try fixing coverage 2024-06-15 10:07:29 +01:00
Šarūnas Nejus
49e6012398 Try fixing testing workflow 2024-06-15 09:19:54 +01:00
Šarūnas Nejus
190198bfa6 Make make-github-release job dependent on publish-to-pypi 2024-06-15 08:48:13 +01:00
Šarūnas Nejus
8b52f3f9a5 Release workflow: Move changelog retrieval to the build job 2024-06-15 06:35:01 +01:00
Šarūnas Nejus
ed574f4307 Release workflow: Update external GitHub action versions
This fixes three warnings seen on https://github.com/beetbox/beets/actions/runs/9296798803
2024-06-15 06:35:01 +01:00
Šarūnas Nejus
1f8c5b8b33 Release workflow: Use poe changelog in make-github-release job 2024-06-15 04:25:51 +01:00
Šarūnas Nejus
0a1bddd99e Release workflow: Use poetry to build the package 2024-06-15 04:25:51 +01:00
Šarūnas Nejus
f964aa89c9 Release workflow: use poe bump to bump the version 2024-06-15 04:25:51 +01:00
Serene
54a8ef7a32 Fix changelog reminder workflow (#5305)
Quote the breaking glob as noted by @bal-e.
2024-06-15 12:23:06 +10:00
Serene
461a1c6f91 Make the release send a toot on Fosstodon (#5302)
This adds a step to the GitHub release so that it sends a toot on
Fosstodon, beets' Mastodon account, to publicise that and get some
engagement!

Not tested, but this is lifted straight from the action repo so it
*should* be okay. @snejus for a sanity check if you wouldn't mind
2024-06-15 10:02:47 +10:00
Šarūnas Nejus
a3721fea81 Check all Python files when poetry.lock changes 2024-06-14 20:12:19 +01:00
Šarūnas Nejus
8608b2549b Trigger lint workflow on dependency updates 2024-06-14 18:49:39 +01:00
Šarūnas Nejus
040a2412b3 Quote changed files glob 2024-06-14 16:00:36 +01:00
Serene
0c96da1136 Use output of tagging action in message
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
2024-06-14 21:51:29 +10:00
Serene
c7da94152f Fix changelog workflow (#5231)
Use `pull_request_target` event for the changelog update reminder
2024-06-14 20:40:52 +10:00
Serene-Arc
d03b1af90d Add mastodon step to release step 2024-06-14 18:52:08 +10:00