Skip to content

Commit db45ddf

Browse files
authored
MAINT: revert PR to avoid tests to run if linting fails (#465)
1 parent 0bc1287 commit db45ddf

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.github/workflows/docker-gdal.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
name: Docker GDAL Test
22

3-
on: [workflow_call] # will be called from lint workflow.
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
49

510
# cancel running jobs on new commit to PR
611
concurrency:
7-
group: Tests-docker-gdal-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
813
cancel-in-progress: true
914

1015
jobs:
11-
Tests-docker-gdal:
16+
TestLinux:
1217
name: GDAL ${{ matrix.container }}
1318
runs-on: ubuntu-latest
1419
strategy:

.github/workflows/lint.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,3 @@ jobs:
1717
with:
1818
python-version: "3.11"
1919
- uses: pre-commit/[email protected]
20-
21-
Call-tests-conda:
22-
needs: [Linting] # require linting to pass before tests run
23-
uses: ./.github/workflows/tests-conda.yml
24-
25-
Call-tests-docker-gdal:
26-
needs: [Linting] # require linting to pass before tests run
27-
uses: ./.github/workflows/docker-gdal.yml
28-

.github/workflows/tests-conda.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
name: Conda Tests
22

3-
on: [workflow_call] # will be called from lint workflow.
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
49

510
# cancel running jobs on new commit to PR
611
concurrency:
7-
group: Tests-conda-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
813
cancel-in-progress: true
914

1015
jobs:
11-
Tests-conda:
16+
test:
1217
name: ${{ matrix.os }}, python ${{ matrix.python }}, ${{ matrix.env }}
1318
runs-on: ${{ matrix.os }}
1419
defaults:

0 commit comments

Comments
 (0)