forked from nogibjj/sqlite-lab
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 972 Bytes
/
cicd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name : install packages
run : make install
- name: test
run: make test
- name : format
run : make format
- name: lint
run: make lint
- name: Archive and Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ml_pipeline-artifacts
path: ${{ github.workspace }}
- name: Save to repository
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
echo GH_TOKEN: "${GH_TOKEN}"
git config --global user.name 'github-actions'
git config --local user.email "action@github.com"
git add .
git commit -m "Added Results" || echo "ignore commit failure, proceed"
git push