Skip to content

Commit 10899a0

Browse files
committed
Revert GHA deletion
Signed-off-by: Abolfazl Shahbazi <[email protected]>
1 parent c33f6d5 commit 10899a0

File tree

9 files changed

+288
-0
lines changed

9 files changed

+288
-0
lines changed

.github/pull_request_template.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- Add a description of the changes made in the PR -->
2+
3+
**Before requesting a review:**
4+
5+
- [ ] I have ensured my PR title is accurate
6+
- [ ] I wrote a description of the changes being made, if it's not obvious
7+
- [ ] I have synced by branch with the base (i.e. `develop`)
8+
- [ ] I ran `make lint` on my branch and it passes
9+
- [ ] I ran the pytest tests that could reasonably be affected by my changes and they pass
10+
- [ ] I have performed a self code review of my own code on the "Files changed" tab of the pull request
11+
- [ ] I have commented my code in hard-to-understand areas
12+
- [ ] I have updated the documentation (in docstrings, notebooks, and .rst files)
13+
- [ ] I have added new tests that prove my fix is effective or that my feature works (or provide justification why not)
14+
- [ ] I have applied the appropriate labels to the PR (if your PR is not ready for review use "WIP")
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: TLT Containers Weekly Builder
2+
on:
3+
workflow_dispatch: # Can be manually executed
4+
schedule: # 1/week Sunday at 11:00PM
5+
- cron: "5 23 * * 0"
6+
jobs:
7+
build:
8+
container: # MLOps Dev container for Compose Automation
9+
image: ${{ vars.GHA_CONTAINER_IMAGE }}
10+
env: # Add ENVS to control compose building
11+
http_proxy: ${{ secrets.HTTP_PROXY }}
12+
https_proxy: ${{ secrets.HTTPS_PROXY }}
13+
no_proxy: ${{ secrets.NO_PROXY }}
14+
credentials: # CAAS Registry Creds
15+
username: ${{ secrets.REGISTRY_USER }}
16+
password: ${{ secrets.REGISTRY_TOKEN }}
17+
runs-on: [aia-devops] # Runner Label
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
submodules: true
22+
set-safe-directory: true
23+
- name: Build Container
24+
run: docker compose build
25+
working-directory: ./docker
26+
push:
27+
needs: [build]
28+
strategy:
29+
matrix:
30+
container: ["tlt-devel", "tlt-prod", "tlt-dist-devel", "tlt-dist-prod"] # name of Compose container
31+
container:
32+
image: ${{ vars.GHA_CONTAINER_IMAGE }}
33+
env: # Add ENVS to control compose building
34+
http_proxy: ${{ secrets.HTTP_PROXY }}
35+
https_proxy: ${{ secrets.HTTPS_PROXY }}
36+
no_proxy: ${{ secrets.NO_PROXY }}
37+
credentials: # CAAS Registry Creds
38+
username: ${{ secrets.REGISTRY_USER }}
39+
password: ${{ secrets.REGISTRY_TOKEN }}
40+
runs-on: [aia-devops]
41+
steps:
42+
- uses: docker/login-action@v2
43+
with: # CAAS Registry Creds
44+
registry: ${{ vars.GHA_REGISTRY }}
45+
username: ${{ secrets.REGISTRY_USER }}
46+
password: ${{ secrets.REGISTRY_TOKEN }}
47+
- name: Push Container # tlt-<num>-<container>
48+
run: |
49+
docker tag intel/ai-tools:${{ matrix.container }}-latest ${{ vars.GHA_REGISTRY_REPO }}:ww$(date +"%U")-${{ matrix.container }}
50+
docker push ${{ vars.GHA_REGISTRY_REPO }}:ww$(date +"%U")-${{ matrix.container }}

.github/workflows/docs-test.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Test docs
2+
on:
3+
pull_request:
4+
types: [submitted]
5+
# run the workflow if changes pushed to main or release branches
6+
push:
7+
branches:
8+
- '**'
9+
tags:
10+
- '**'
11+
paths:
12+
- '**'
13+
14+
# installs dependencies, build the docs and push it to `gh-pages`
15+
jobs:
16+
docs-test:
17+
runs-on: [ aia-devops ]
18+
container:
19+
image: ${{ vars.GHA_IMAGE }}
20+
env:
21+
http_proxy: ${{ secrets.HTTP_PROXY }}
22+
https_proxy: ${{ secrets.HTTPS_PROXY }}
23+
no_proxy: ${{ secrets.NO_PROXY }}
24+
# credentials:
25+
# username: ${{ secrets.REGISTRY_USER }}
26+
# password: ${{ secrets.REGISTRY_TOKEN }}
27+
volumes:
28+
- /tf_dataset/dataset/transfer_learning:/tmp/data
29+
steps:
30+
- uses: actions/checkout@v3
31+
# Test the docs
32+
- name: Run documentation tests
33+
run: |
34+
make test_docs

.github/workflows/integration.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Integration Test
2+
on:
3+
pull_request_review:
4+
types: [submitted]
5+
# run the workflow if changes pushed to main or release branches
6+
push:
7+
branches:
8+
- develop
9+
- main
10+
- r0.1
11+
- r0.2
12+
- r0.3
13+
- r0.4
14+
tags:
15+
- '**'
16+
paths:
17+
- '**'
18+
jobs:
19+
integration-test:
20+
if: github.event.review.state == 'approved' ||
21+
github.event.pull_request.merged == true ||
22+
github.event_name == 'push'
23+
runs-on: [ aia-devops ]
24+
container:
25+
image: ${{ vars.GHA_IMAGE }}
26+
env:
27+
http_proxy: ${{ secrets.HTTP_PROXY }}
28+
https_proxy: ${{ secrets.HTTPS_PROXY }}
29+
no_proxy: ${{ secrets.NO_PROXY }}
30+
# credentials:
31+
# username: ${{ secrets.REGISTRY_USER }}
32+
# password: ${{ secrets.REGISTRY_TOKEN }}
33+
volumes:
34+
- /tf_dataset/dataset/transfer_learning:/tmp/data
35+
steps:
36+
- uses: actions/checkout@v3
37+
- name: Run Integration Tests
38+
shell: bash
39+
continue-on-error: false
40+
run: make integration
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Nightly Integration Test
2+
on:
3+
workflow_dispatch: # Can be manually executed
4+
schedule: # nightly at 10:00PM
5+
- cron: "0 22 * * *"
6+
jobs:
7+
nightly-test:
8+
runs-on: [ aia-devops ]
9+
container:
10+
image: ${{ vars.GHA_IMAGE }}
11+
env:
12+
http_proxy: ${{ secrets.HTTP_PROXY }}
13+
https_proxy: ${{ secrets.HTTPS_PROXY }}
14+
no_proxy: ${{ secrets.NO_PROXY }}
15+
# credentials:
16+
# username: ${{ secrets.REGISTRY_USER }}
17+
# password: ${{ secrets.REGISTRY_TOKEN }}
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
ref: develop
22+
- name: Run Integration Test
23+
shell: bash
24+
continue-on-error: false
25+
run: make integration
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Nightly Notebooks Test
2+
on:
3+
workflow_dispatch: # Can be manually executed
4+
schedule: # nightly at 11:00PM
5+
- cron: "0 23 * * *"
6+
jobs:
7+
notebook-test:
8+
runs-on: [ aia-devops ]
9+
container:
10+
image: ${{ vars.GHA_IMAGE }}
11+
env:
12+
http_proxy: ${{ secrets.HTTP_PROXY }}
13+
https_proxy: ${{ secrets.HTTPS_PROXY }}
14+
no_proxy: ${{ secrets.NO_PROXY }}
15+
DATASET_DIR: /tmp/data
16+
OUTPUT_DIR: /tmp/output
17+
# credentials:
18+
# username: ${{ secrets.REGISTRY_USER }}
19+
# password: ${{ secrets.REGISTRY_TOKEN }}
20+
steps:
21+
- uses: actions/checkout@v3
22+
with:
23+
ref: develop
24+
- name: Run Notebook Tests
25+
run: make test_notebook_catalog
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Notebooks Test
2+
on:
3+
pull_request_review:
4+
types: [submitted]
5+
# run the workflow if changes pushed to main or release branches
6+
push:
7+
branches:
8+
- develop
9+
- main
10+
- r0.1
11+
- r0.2
12+
- r0.3
13+
- r0.4
14+
tags:
15+
- '**'
16+
paths:
17+
- '**'
18+
jobs:
19+
notebook-test:
20+
if: github.event.review.state == 'approved' ||
21+
github.event.pull_request.merged == true ||
22+
github.event_name == 'push'
23+
runs-on: [ aia-devops ]
24+
container:
25+
image: ${{ vars.GHA_IMAGE }}
26+
env:
27+
http_proxy: ${{ secrets.HTTP_PROXY }}
28+
https_proxy: ${{ secrets.HTTPS_PROXY }}
29+
no_proxy: ${{ secrets.NO_PROXY }}
30+
DATASET_DIR: /tmp/data
31+
OUTPUT_DIR: /tmp/output
32+
# credentials:
33+
# username: ${{ secrets.REGISTRY_USER }}
34+
# password: ${{ secrets.REGISTRY_TOKEN }}
35+
volumes:
36+
- /tf_dataset/dataset/transfer_learning:/tmp/data
37+
steps:
38+
- uses: actions/checkout@v3
39+
- name: Run Notebook Tests
40+
run: make test_notebook_custom

.github/workflows/style-test.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Style Checks
2+
on:
3+
pull_request:
4+
types: [submitted]
5+
# run the workflow if changes pushed to main or release branches
6+
push:
7+
branches:
8+
- '**'
9+
tags:
10+
- '**'
11+
paths:
12+
- '**'
13+
# installs dependencies and runs the linter
14+
jobs:
15+
style-test:
16+
runs-on: [ aia-devops ]
17+
container:
18+
image: ${{ vars.GHA_IMAGE }}
19+
env:
20+
http_proxy: ${{ secrets.HTTP_PROXY }}
21+
https_proxy: ${{ secrets.HTTPS_PROXY }}
22+
no_proxy: ${{ secrets.NO_PROXY }}
23+
# credentials:
24+
# username: ${{ secrets.REGISTRY_USER }}
25+
# password: ${{ secrets.REGISTRY_TOKEN }}
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Run linter
29+
run: |
30+
make lint

.github/workflows/unittest.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Unit Test
2+
on:
3+
pull_request:
4+
types: [submitted]
5+
# run the workflow if changes pushed to main or release branches
6+
push:
7+
branches:
8+
- '**'
9+
tags:
10+
- '**'
11+
paths:
12+
- '**'
13+
jobs:
14+
unit-test:
15+
runs-on: [ aia-devops ]
16+
container:
17+
image: ${{ vars.GHA_IMAGE }}
18+
env:
19+
http_proxy: ${{ secrets.HTTP_PROXY }}
20+
https_proxy: ${{ secrets.HTTPS_PROXY }}
21+
no_proxy: ${{ secrets.NO_PROXY }}
22+
# credentials:
23+
# username: ${{ secrets.REGISTRY_USER }}
24+
# password: ${{ secrets.REGISTRY_TOKEN }}
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: Run Unit Test
28+
shell: bash
29+
continue-on-error: false
30+
run: make unittest

0 commit comments

Comments
 (0)