From 63059bb78fdc53f52b12e7a1a35851beefa5d13a Mon Sep 17 00:00:00 2001 From: Antti Kettunen Date: Sun, 19 Apr 2026 17:29:59 +0300 Subject: [PATCH 1/2] Add a simple workflow for running build + test on pushes Install dev dependencies, compile Python sources, and run pytest on every push to catch any potential issues that might've gone unnoticed during development --- .github/workflows/build-and-test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 00000000..cda10fb4 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,28 @@ +name: Compile the app and run tests + +on: + push: + +jobs: + sanity-check: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.11" + cache: pip + cache-dependency-path: requirements-dev.txt + + - name: Install dependencies + run: python -m pip install --upgrade pip && python -m pip install -r requirements-dev.txt + + - name: Build app + run: python -m compileall api core database services scripts web_server.py wsgi.py beatport_unified_scraper.py + + - name: Run tests + run: pytest From ba2803551a780c5d7f9a6d80d0fdbd902ef0637a Mon Sep 17 00:00:00 2001 From: Antti Kettunen Date: Sun, 19 Apr 2026 19:28:06 +0300 Subject: [PATCH 2/2] Update actions to latest --- .github/workflows/docker-publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index c4b2c2f3..f12467cf 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -14,22 +14,22 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up QEMU - uses: docker/setup-qemu-action@v3 + uses: docker/setup-qemu-action@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Log in to Docker Hub - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: . platforms: linux/amd64,linux/arm64