Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Karolk99 committed Jun 18, 2024
1 parent 884da1b commit bf4b038
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 61 deletions.
58 changes: 0 additions & 58 deletions .circleci/config.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on: [push]

jobs:
lint:

runs-on: ubuntu-latest
name: lint
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pip install poetry
- name: Install project dependencies
run: poetry install --no-ansi --with=dev
- name: Lint
run: poetry run lint
- name: Check format
run: poetry run format_check

test:
runs-on: ubuntu-latest
name: test
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: docker compose -f docker-compose-test.yaml up test --exit-code-from test
- run: docker compose -f docker-compose-test.yaml down
- run: docker compose -f docker-compose-test.yaml up examples --exit-code-from examples
4 changes: 1 addition & 3 deletions docker-compose-test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: "3"

services:
fishjam:
image: "ghcr.io/membrane-cloud/fishjam:${TAG:-edge}"
image: "ghcr.io/fishjam-dev/fishjam:${TAG:-edge}"
container_name: fishjam
restart: on-failure
healthcheck:
Expand Down

0 comments on commit bf4b038

Please sign in to comment.