forked from GeospatialPython/pyshp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-use and re-instate the Action file
- Loading branch information
1 parent
6b62dc6
commit 658f30c
Showing
2 changed files
with
33 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: | ||
Test | ||
|
||
description: | ||
Run pytest, and run the doctest runner (shapefile.py as a script). | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# The Repo is required to already be checked out, e.g. by the calling workflow | ||
|
||
# The Python to be tested with is required to already be setup, with "python" and "pip" on the system Path | ||
|
||
- name: Doctests | ||
run: python shapefile.py | ||
|
||
- name: Install test dependencies. | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.test.txt | ||
- name: Pytest | ||
run: | | ||
pytest | ||
- name: Show versions for logs. | ||
run: | | ||
python --version | ||
python -m pytest --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters