Skip to content

disable parallel climatologu processing #435

disable parallel climatologu processing

disable parallel climatologu processing #435

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Set up python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install package
run: poetry install
- name: Lint with black
run: poetry run black . --diff
- name: Run tests
run: poetry run pytest --cov=aprofiles/ --cov-report=xml tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
- name: Set up python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install package
run: poetry install -E docs
- name: Make the docs
run: |
cd docs
poetry run make html