Spaces:
Sleeping
Sleeping
Commit ·
eb5179d
1
Parent(s): f8e564a
add ci
Browse files
.github/workflows/docker_check.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Docker Build
|
| 2 |
+
on:
|
| 3 |
+
pull_request:
|
| 4 |
+
branches:
|
| 5 |
+
- main
|
| 6 |
+
|
| 7 |
+
jobs:
|
| 8 |
+
build-check:
|
| 9 |
+
runs-on: ubuntu-22.04
|
| 10 |
+
|
| 11 |
+
steps:
|
| 12 |
+
- name: Checkout repository
|
| 13 |
+
uses: actions/checkout@v3
|
| 14 |
+
|
| 15 |
+
- name: Build Docker image
|
| 16 |
+
run: |
|
| 17 |
+
docker build -t ghcr.io/${{ github.repository }}:latest .
|
.github/workflows/docker_release.yml
CHANGED
|
@@ -6,7 +6,7 @@ on:
|
|
| 6 |
|
| 7 |
jobs:
|
| 8 |
build-and-push:
|
| 9 |
-
runs-on: ubuntu-
|
| 10 |
|
| 11 |
steps:
|
| 12 |
- name: Checkout repository
|
|
|
|
| 6 |
|
| 7 |
jobs:
|
| 8 |
build-and-push:
|
| 9 |
+
runs-on: ubuntu-22.04
|
| 10 |
|
| 11 |
steps:
|
| 12 |
- name: Checkout repository
|
.github/workflows/python-lint.yml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Lint Python Code
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
pull_request:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
|
| 8 |
+
jobs:
|
| 9 |
+
flake8-lint:
|
| 10 |
+
runs-on: ubuntu-22.04
|
| 11 |
+
steps:
|
| 12 |
+
- name: Check out the repository
|
| 13 |
+
uses: actions/checkout@v3
|
| 14 |
+
|
| 15 |
+
- name: Set up Python
|
| 16 |
+
uses: actions/setup-python@v4
|
| 17 |
+
with:
|
| 18 |
+
python-version: '3.x'
|
| 19 |
+
|
| 20 |
+
- name: Install dependencies
|
| 21 |
+
run: |
|
| 22 |
+
python -m pip install --upgrade pip
|
| 23 |
+
pip install flake8
|
| 24 |
+
|
| 25 |
+
- name: Run flake8
|
| 26 |
+
run: flake8 .
|