Skip to content

Commit eaafd3c

Browse files
committed
.github: fix workflow not running because not on default branch
1 parent c1a90b6 commit eaafd3c

File tree

2 files changed

+45
-53
lines changed

2 files changed

+45
-53
lines changed

.github/workflows/build.yml

Lines changed: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
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

85
jobs:
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
@@ -24,6 +19,48 @@ jobs:
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:

.github/workflows/test.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)