#145 replace shapefile with pyshp module (#146) #128
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Unit tests for TCRM | |
on: | |
push: | |
branches: [ master, develop ] | |
pull_request: | |
branches: [ master, develop ] | |
jobs: | |
TCRM: | |
name: Test TCRM | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-variant: MambaForge | |
python-version: ${{ matrix.python-version }} | |
channels: conda-forge,defaults | |
channel-priority: true | |
activate-environment: tcrm | |
environment-file: tcrmenv.yml | |
auto-activate-base: false | |
use-only-tar-bz2: true | |
- name: Test with pytest | |
env: | |
PYTHONPATH: ~/tcrm;~/tcrm/Utilities | |
shell: bash -l {0} | |
run: | | |
pytest -x --cov=. --cov-report xml |