Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/TabbyML/tabby into c/cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
dheeraj-reddy-ts committed Dec 15, 2023
2 parents 533a3b1 + a60006b commit 4893876
Show file tree
Hide file tree
Showing 379 changed files with 15,727 additions and 7,258 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
.idea
ci
clients
.github
python
**/target
**/node_modules
website
32 changes: 32 additions & 0 deletions .github/workflows/autofix-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: autofix.ci

on:
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/autofix-python.yml'
- 'python/**'

permissions:
contents: read

concurrency:
group: ${{ github.workflow_ref }}-${{ github.head_ref || github.ref_name }}

# If this is enabled it will cancel current running and start latest
cancel-in-progress: true

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: chartboost/ruff-action@v1
with:
src: "./python"
args: --fix

- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
branches: ["main" ]
paths:
- '.github/workflows/autofix-rust.yml'
- 'Cargo.toml'
- 'Cargo.lock'
- 'crates/**'
Expand All @@ -13,7 +14,7 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
group: ${{ github.workflow_ref }}-${{ github.head_ref || github.ref_name }}

# If this is enabled it will cancel current running and start latest
cancel-in-progress: true
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/autofix-tabby-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: autofix.ci

on:
pull_request:
branches: ["main" ]
paths:
- '.github/workflows/autofix-tabby-ui.yml'
- 'ee/tabby-ui/**'

permissions:
contents: read

concurrency:
group: ${{ github.workflow_ref }}-${{ github.head_ref || github.ref_name }}

# If this is enabled it will cancel current running and start latest
cancel-in-progress: true

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: yarn
cache-dependency-path: 'yarn.lock'

- name: Install dependencies
working-directory: ./ee/tabby-ui
run: yarn install

- name: Lint
working-directory: ./ee/tabby-ui
run: yarn lint:fix

- name: Format
working-directory: ./ee/tabby-ui
run: yarn format:write

- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
142 changes: 0 additions & 142 deletions .github/workflows/ci.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ concurrency:
# If this is enabled it will cancel current running and start latest
cancel-in-progress: true

env:
RUST_TOOLCHAIN: 1.73.0

jobs:
release-docker:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -101,8 +104,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: ${{ steps.cache.outputs.cache-from }}
cache-to: ${{ steps.cache.outputs.cache-to }}
build-args: |
RUST_TOOLCHAIN=1.73.0
build-args: RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/issue-translator.yml

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 4893876

Please sign in to comment.