Skip to content

Commit 3f53b75

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

2 files changed

Lines changed: 46 additions & 53 deletions

File tree

.github/workflows/build.yml

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,55 @@
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')
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- name: Ubuntu latest with py3.x
16+
os: ubuntu-latest
17+
python: "3.x"
18+
19+
steps:
20+
- uses: actions/checkout@v6
21+
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') }}
1553

1654
strategy:
1755
fail-fast: false

.github/workflows/test.yml

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

0 commit comments

Comments
 (0)