Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable e2e tests within CI pipeline again #7

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ jobs:
- name: Unit test
run: make test

# TODO: Make e2e tests work again within CI.
# They stopped working now apparently because youtube blocks unauthenticated requests from GHA.
#- name: E2E test
# run: make test-e2e
- name: E2E test
run: make test-e2e

- name: Build wheel
run: |
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ RUN set -eux; \
ln -s /opt/bats/bin/bats /usr/local/bin/bats; \
rm -rf /tmp/bats-core-$BATS_VERSION

# Install beets patch + yt-dlp upgrade
RUN set -eux; \
BUILD_DEPS='git'; \
apk add --update --no-cache $BUILD_DEPS; \
python3 -m pip install \
git+https://github.com/beetbox/beets.git@a1c0ebdeef267e227c26f9defc93799c86c8fe54#egg=beets \
ytmusicapi==1.9.1 \
yt-dlp==2025.01.26; \
apk del --purge $BUILD_DEPS

# Install beets-autogenre from source
COPY dist /plugin/dist
RUN python -m pip install /plugin/dist/*
Expand Down
Loading