Merge pull request #108 from wolberlab/MarvinTaterra-patch-4 #329
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/codecov-action@v4.0.1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| build_linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["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.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.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/ |