Skip to content

Commit

Permalink
ci: run server in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gjedlicska committed Jan 20, 2025
1 parent 3859a88 commit 37c8e6d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/github-action.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: 'Specklepy test and build'
name: "Specklepy test and build"
on:
# pull_request:
# branches:
# - 'v3-dev'
push:
branches:
- 'gergo/uvSetup'
- "gergo/uvSetup"
jobs:
ci:
name: continuous-integration
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v4
Expand All @@ -26,7 +26,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: 'uv.lock'
cache-dependency-glob: "uv.lock"

- name: Install the project
run: uv sync --all-extras --dev
Expand All @@ -39,6 +39,9 @@ jobs:
- name: Run pre-commit
run: uv run pre-commit run --all-files

- name: Run Speckle Server
run: docker compose up -d

# do some more stuff here
- name: Minimize uv cache
run: uv cache prune --ci
8 changes: 1 addition & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
# Speckle Server dependencies
#######
postgres:
image: "postgres:14.5-alpine"
image: "postgres:16-alpine"
restart: always
environment:
POSTGRES_DB: speckle
Expand Down Expand Up @@ -53,12 +53,6 @@ services:
# Speckle Server
#######

speckle-frontend:
image: speckle/speckle-frontend-2:latest
restart: always
ports:
- "0.0.0.0:8080:8080"

speckle-server:
image: speckle/speckle-server:latest
restart: always
Expand Down

0 comments on commit 37c8e6d

Please sign in to comment.