Skip to content

Commit

Permalink
BRAYNS-627 Use GitHub actions. (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien4193 authored Apr 17, 2024
1 parent 6f1a824 commit 2500cf8
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ SpacesInLineCommentPrefix:
Maximum: 1
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: c++17
Standard: c++20
TabWidth: 4
UseCRLF: false
UseTab: Never
15 changes: 15 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build Docker Image

on:
pull_request:
branches:
- develop

jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t develop .
18 changes: 18 additions & 0 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Linter

on:
pull_request:
branches:
- develop

jobs:
clang-format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run clang-format
run: |
apt update && apt install -y clang-format-15
SOURCES=$(find apps src tests \( -name "*.h" -or -name "*.cpp" \))
clang-format-15 --dry-run --Werror $SOURCES
28 changes: 0 additions & 28 deletions .github/workflows/publish-python-client.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
build-and-publish:
name: Build and publish on PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Build a source tarball
run: |
cd python
python setup.py sdist
- name: Publish distribution package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
19 changes: 0 additions & 19 deletions .gitlab-ci.viz.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .gitlab-ci.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ build:
python: "3.9"

sphinx:
configuration: python/doc/source/conf.py
configuration: python/doc/source/conf.py

python:
install:
- requirements: python/requirements.txt
install:
- requirements: python/requirements.txt

0 comments on commit 2500cf8

Please sign in to comment.