Update copyright order in README.md #39
Workflow file for this run
This file contains 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: | |
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-cov | |
pytest -vv --cov=mdpath --cov-report=xml --cov-report=html --color=yes mdpath/tests/ | |
coverage run -m pytest mdpath/tests/ | |
coverage xml | |
coverage report | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
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/ |