Skip to content

Merge branch 'main' into dependabot/pip/cftime-1.6.4.post1 #244

Merge branch 'main' into dependabot/pip/cftime-1.6.4.post1

Merge branch 'main' into dependabot/pip/cftime-1.6.4.post1 #244

Workflow file for this run

name: Test
on: [push,pull_request,workflow_call]
jobs:
qa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11' # Use your preferred Python version
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install pre-commit
- name: Run pre-commit
run: |
source venv/bin/activate
pre-commit run --all-files
test:
needs: qa
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [ "3.10" ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -r dev-requirements.txt
- name: Run tests
run: pytest