File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ # Maintain dependencies for GitHub Actions
4+ - package-ecosystem : " github-actions"
5+ directory : " /"
6+ schedule :
7+ interval : " weekly"
8+ groups :
9+ actions :
10+ patterns :
11+ - " *"
12+ # Maintain dependencies for Python
13+ - package-ecosystem : pip
14+ directory : " /"
15+ schedule :
16+ interval : " weekly"
17+ groups :
18+ python-packages :
19+ patterns :
20+ - " *"
Original file line number Diff line number Diff line change 1+ name : Lint
2+ on :
3+ pull_request :
4+ workflow_dispatch :
5+ push :
6+ branches : main
7+
8+ jobs :
9+ lint_python :
10+ name : Lint Python Code
11+ runs-on : ubuntu-latest
12+ steps :
13+
14+ - name : Check out Git repository
15+ uses : actions/checkout@v4
16+
17+ - name : Lint with Flake8
18+ run : |
19+ pip install --upgrade pip
20+ pip install .[test]
21+ flake8 --statistics .
Original file line number Diff line number Diff line change 1+ name : Regression
2+ on :
3+ pull_request :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ pure_python_ci :
11+ name : " Python Tests"
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Run pytest
19+ run : |
20+ python3 -m pip install --upgrade pip
21+ python3 -m pip install .[test]
22+ pytest
Original file line number Diff line number Diff line change 1+ name : Wheels
2+
3+ on :
4+ workflow_dispatch :
5+ release :
6+ types :
7+ - published
8+
9+ jobs :
10+ build_wheels :
11+ name : Wheels
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : hynek/build-and-inspect-python-package@v2
17+
18+ publish :
19+ needs : [build_wheels]
20+ runs-on : ubuntu-latest
21+ if : github.event_name == 'release' && github.event.action == 'published'
22+
23+ steps :
24+ - uses : zeroasiccorp/za_logikbench/.github/actions/add@main
25+ with :
26+ token : ${{ secrets.ZA_TOKEN }}
27+ package_name : logikbench
28+
29+ save :
30+ needs : [build_wheels]
31+ runs-on : ubuntu-latest
32+ if : github.event_name == 'release' && github.event.action == 'published'
33+
34+ permissions :
35+ contents : write
36+
37+ steps :
38+ - uses : actions/download-artifact@v4
39+ with :
40+ name : Packages
41+ path : dist
42+
43+ - name : Add wheels to GitHub release artifacts
44+ uses : softprops/action-gh-release@v2
45+ with :
46+ files : dist/*.whl
You can’t perform that action at this time.
0 commit comments