Skip to content

Commit

Permalink
Add CI-CD workflow for Linux, macOS, and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
NDoering99 committed Jul 26, 2024
1 parent feb0473 commit cdfde7b
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 109 deletions.
100 changes: 100 additions & 0 deletions .github/workflows/CI_CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: CI-CD

on: [push]

jobs:
build_linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "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 mdpath/tests/
build_macos:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "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 mdpath/tests/
build_windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "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 mdpath/tests/
36 changes: 0 additions & 36 deletions .github/workflows/Linux_CI_CD.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/MacOS_CI_CD.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/Windows_CI_CD.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mdpath
==============================
[//]: # (Badges)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![CI-CD](https://github.com/NDoering99/mdpath/actions/workflows/Linux_CI_CD.yml/badge.svg)](https://github.com/NDoering99/mdpath/actions/workflows/Linux_CI_CD.yml)
[![CI-CD](https://github.com/NDoering99/mdpath/actions/workflows/CI_CD.yml/badge.svg)](https://github.com/NDoering99/mdpath/actions/workflows/CI_CD.yml)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

MD signal transduction calculation
Expand Down

0 comments on commit cdfde7b

Please sign in to comment.