Skip to content

Commit f10c3ad

Browse files
committed
Make skipping network tests optional
1 parent 1fd2c8c commit f10c3ad

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/actions/test/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ name:
44
description:
55
Run pytest, and run the doctest runner (shapefile.py as a script).
66

7+
inputs:
8+
extra_args:
9+
type: string
10+
default: '-m "not network"'
11+
712
runs:
813
using: "composite"
914
steps:
@@ -13,7 +18,7 @@ runs:
1318

1419
- name: Doctests
1520
shell: bash
16-
run: python shapefile.py -m "not network"
21+
run: python shapefile.py ${{ inputs.extra_args }}
1722

1823
- name: Install test dependencies.
1924
shell: bash
@@ -24,7 +29,7 @@ runs:
2429
- name: Pytest
2530
shell: bash
2631
run: |
27-
pytest -m "not network"
32+
pytest ${{ inputs.extra_args }}
2833
2934
- name: Show versions for logs.
3035
shell: bash

0 commit comments

Comments
 (0)