File tree Expand file tree Collapse file tree 2 files changed +45
-53
lines changed
Expand file tree Collapse file tree 2 files changed +45
-53
lines changed Original file line number Diff line number Diff line change 1- name : LEEP release
1+ name : LEEP
22
3- on :
4- workflow_run :
5- workflows : [LEEP tests]
6- types : [completed]
3+ on : [push, pull_request, workflow_dispatch]
74
85jobs :
9- build :
6+ test :
107
118 name : ${{ matrix.name }}
129 runs-on : ${{ matrix.os }}
13- if : ${{ github.event.workflow_run.conclusion == 'success' }}
14- # && startsWith(github.ref, 'refs/tags/v')
1510
1611 strategy :
1712 fail-fast : false
2419 steps :
2520 - uses : actions/checkout@v6
2621
22+ - name : Setup python
23+ uses : actions/setup-python@v6
24+ with :
25+ python-version : ${{ matrix.python }}
26+
27+ - name : Install basic Python packages
28+ run : |
29+ python -m pip install --upgrade pip
30+ python -m pip install -r requirements.txt
31+ python -m pip install pytest flake8
32+ which python
33+ python --version
34+ python -m pip --version
35+ python -m pytest --version
36+ python -m flake8 --version
37+
38+ - name : Lint
39+ run : |
40+ flake8
41+ continue-on-error : true
42+
43+ - name : Test
44+ run : |
45+ python -m pytest -v
46+
47+ release :
48+
49+ name : ${{ matrix.name }}
50+ runs-on : ${{ matrix.os }}
51+ needs : [test]
52+ # if: ${{ startsWith(github.ref, 'refs/tags/v') }}
53+
54+ strategy :
55+ fail-fast : false
56+ matrix :
57+ include :
58+ - name : Ubuntu latest with py3.x
59+ os : ubuntu-latest
60+ python : " 3.x"
61+
62+ - uses : actions/checkout@v6
63+
2764 - name : Setup python
2865 uses : actions/setup-python@v6
2966 with :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments