Issue15 simplify #121
Workflow file for this run
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
name: pytest | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
pyTestCov: | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, '3.10', '3.11'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Python Setup | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable | |
sudo apt-get update | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pytest-timeout | |
pip install pytest-cov | |
pip install pytest-mock | |
- name: Run Tests | |
run: python -m pytest -v -m without_nansat --cov=sarwind --timeout=120 | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v3 |