File tree 4 files changed +109
-38
lines changed
4 files changed +109
-38
lines changed Original file line number Diff line number Diff line change
1
+ name : Default CI Pipeline
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ outputs :
9
+ matrix : ${{ steps.set-matrix.outputs.matrix }}
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ - uses : actions/setup-python@v4
13
+ with :
14
+ python-version : ' 3.10'
15
+ - name : Install Dependencies
16
+ run : |
17
+ python -m pip install --upgrade pip
18
+ pip install -e ."[dev, test]"
19
+ - name : Prepare environment
20
+ id : set-matrix
21
+ run : echo "::set-output name=matrix::${{ toJson(github.ref) }}"
22
+
23
+ lint :
24
+ needs : build
25
+ runs-on : ubuntu-latest
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+ - uses : actions/setup-python@v4
29
+ with :
30
+ python-version : ' 3.10'
31
+ - name : Lint with Ruff
32
+ uses : chartboost/ruff-action@v1
33
+
34
+ test :
35
+ needs : lint
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - uses : actions/checkout@v4
39
+ - uses : actions/setup-python@v4
40
+ with :
41
+ python-version : ' 3.10'
42
+ - name : Run Tests
43
+ run : |
44
+ python -m pip install --upgrade pip
45
+ pip install -e ."[test]"
46
+ python -m pytest tests/
Original file line number Diff line number Diff line change
1
+ name : Release CI Pipeline
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ outputs :
12
+ matrix : ${{ steps.set-matrix.outputs.matrix }}
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : actions/setup-python@v4
16
+ with :
17
+ python-version : ' 3.10'
18
+ - name : Install Dependencies
19
+ run : |
20
+ python -m pip install --upgrade pip
21
+ pip install -e ."[dev, test]"
22
+ - name : Prepare environment
23
+ id : set-matrix
24
+ run : echo "::set-output name=matrix::${{ toJson(github.ref) }}"
25
+
26
+ lint :
27
+ needs : build
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+ - uses : actions/setup-python@v4
32
+ with :
33
+ python-version : ' 3.10'
34
+ - name : Lint with Ruff
35
+ uses : chartboost/ruff-action@v1
36
+
37
+ test :
38
+ needs : lint
39
+ runs-on : ubuntu-latest
40
+ steps :
41
+ - uses : actions/checkout@v4
42
+ - uses : actions/setup-python@v4
43
+ with :
44
+ python-version : ' 3.10'
45
+ - name : Run Tests
46
+ run : |
47
+ python -m pip install --upgrade pip
48
+ pip install -e ."[test]"
49
+ python -m pytest tests/
50
+
51
+ release :
52
+ needs : test
53
+ runs-on : ubuntu-latest
54
+ steps :
55
+ - name : Create Release
56
+ uses : actions/create-release@v1
57
+ env :
58
+ GITHUB_TOKEN : ${{ secrets.CI_CD_TOKEN }}
59
+ with :
60
+ tag_name : ${{ github.ref_name }} # Changed to use github.ref_name
61
+ release_name : Release ${{ github.ref_name }} # Use the tag name without refs/tags/
62
+ draft : false
63
+ prerelease : false
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments