-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1023 Bytes
/
python.yml
File metadata and controls
41 lines (39 loc) · 1023 Bytes
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
41
name: CI-Python
on:
push:
branches: [ "main" ]
paths:
- "**.py"
- "**.ipynb"
pull_request:
branches: [ "main" ]
paths:
- "**.py"
- "**ipynb"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name : install packages
run : make install_actions
- name : format
run : make format_python
- name: lint
run: make lint_python
- name: Archive and Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: github_actions
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 "Performed Python CI" || echo "ignore commit failure, proceed"
git push