Skip to content

Modernize library and coding conventions #357

Modernize library and coding conventions

Modernize library and coding conventions #357

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Conda Build with Python${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Install packages
run: |
sudo apt-get -y install pandoc
if: matrix.python-version == 3.9
- name: Setup Conda (Micromamba) with Python${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-environment: true
environment-file: environment-docs.yml
create-args: >-
python=${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --no-user --editable ".[dev]"
- name: Lint with flake8
run: make lint
if: matrix.python-version == 3.9
# - name: Check formatting with black
# run: black --check --target-version py39 daops tests
# if: matrix.python-version == 3.9
- name: Test with pytest
run: |
python -m pytest -v tests
- name: Build docs 🏗️
run: make docs
if: matrix.python-version == 3.9