Skip to content

Commit

Permalink
refactor ci
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Oct 23, 2024
1 parent f7fe086 commit ae0fbe5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# Check commit and PR compliance
name: Check commit message compliance
name: check commit compliance
on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
check-commit-pr:
name: Check commit and PR
runs-on: ubuntu-20.04
format:
runs-on: ubuntu-latest
steps:
- name: Check first line
uses: gsactions/commit-message-checker@16fa2d5de096ae0d35626443bcd24f1e756cafee # v2.0.0
Expand All @@ -19,3 +16,18 @@ jobs:
excludeTitle: 'true' # optional: this excludes the title of a pull request
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true

signatures:
runs-on: ubuntu-latest
steps:
- name: Check commit signatures
uses: 1Password/check-signed-commits-action@ed2885f3ed2577a4f5d3c3fe895432a557d23d52

linelint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Linelint
uses: fernandrone/[email protected]
id: linelint
16 changes: 10 additions & 6 deletions .github/workflows/concrete_python_tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
job-secret: ${{ secrets.JOB_SECRET }}
backend: aws
profile: cpu-test
concrete-compiler-build-python-bindings:

build-python-bindings:
name: Build concrete-compiler python bindings
needs: setup-instance
runs-on: ${{ needs.setup-instance.outputs.runner-name }}
Expand Down Expand Up @@ -80,9 +81,10 @@ jobs:
path: |
build/lib/libConcretelangRuntime.so
build/tools/concretelang/python_packages/concretelang_core/
concrete-python-test-pytest:
test-pytest:
name: Test concrete-python pytest
needs: [setup-instance, concrete-compiler-build-python-bindings]
needs: [setup-instance, build-python-bindings]
runs-on: ${{ needs.setup-instance.outputs.runner-name }}
steps:
- name: Download concrete-compiler python-bindings
Expand Down Expand Up @@ -110,9 +112,10 @@ jobs:
export KEY_CACHE_DIRECTORY=./key-set-cache
mkdir $KEY_CACHE_DIRECTORY
make pytest
concrete-python-test-notebooks:
test-notebooks:
name: Test concrete-python notebooks
needs: [setup-instance, concrete-compiler-build-python-bindings]
needs: [setup-instance, build-python-bindings]
runs-on: ${{ needs.setup-instance.outputs.runner-name }}
steps:
- name: Download concrete-compiler python-bindings
Expand All @@ -137,10 +140,11 @@ jobs:
cd /concrete/frontends/concrete-python
source .venv/bin/activate
make test-notebooks
teardown-instance:
name: Teardown instance
if: ${{ always() && needs.setup-instance.result != 'skipped' }}
needs: [ setup-instance, concrete-python-test-pytest, concrete-python-test-notebooks ]
needs: [ setup-instance, test-pytest, test-notebooks ]
runs-on: ubuntu-latest
steps:
- name: Stop instance
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/linelint.yml

This file was deleted.

0 comments on commit ae0fbe5

Please sign in to comment.