Skip to content

Merge pull request #56 from NDoering99/entropy_patch #224

Merge pull request #56 from NDoering99/entropy_patch

Merge pull request #56 from NDoering99/entropy_patch #224

Workflow file for this run

name: CI-CD
on: [push]
jobs:
build_linux_main:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
max-parallel: 3
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install package and its entry points
run: |
pip install .
- name: Install linter and formatter
run: |
python -m pip install flake8 black
- name: Lint and format
run: |
black .
- name: Install pytest and run tests
run: |
python -m pip install pytest pytest-mock pytest-cov
pytest --cov=mdpath --cov-report=xml --cov-report=html --color=yes mdpath/tests/
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
build_linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
max-parallel: 3
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install package and its entry points
run: |
pip install .
- name: Install linter and formatter
run: |
python -m pip install flake8 black
- name: Lint and format
run: |
black .
- name: Install pytest and run tests
run: |
python -m pip install pytest pytest-mock
pytest mdpath/tests/
build_macos:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
max-parallel: 4
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install package and its entry points
run: |
pip install .
- name: Install linter and formatter
run: |
python -m pip install flake8 black
- name: Lint and format
run: |
black .
- name: Install pytest and run tests
run: |
python -m pip install pytest pytest-mock
pytest mdpath/tests/
build_windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
max-parallel: 4
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install package and its entry points
run: |
pip install .
- name: Install linter and formatter
run: |
python -m pip install flake8 black
- name: Lint and format
run: |
black .
- name: Install pytest and run tests
run: |
python -m pip install pytest pytest-mock
pytest mdpath/tests/