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

BRAYNS-627 Use GitHub actions. #1250

Merged
merged 1 commit into from
Apr 17, 2024
Merged
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
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