Skip to content

Renaming to cpctools #63

Renaming to cpctools

Renaming to cpctools #63

name: "Checking if the PR can be merged"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
changelog-enforcer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dangoslen/changelog-enforcer@v3
with:
changeLogPath: './Changelog.md'
documentation-coverage:
runs-on: ubuntu-latest
needs: changelog-enforcer
steps:
- uses: actions/checkout@v3
- name: Set Up Python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install requisites
run: python -m pip install --upgrade pip
- name: Install pandoc
run: sudo apt install -y pandoc
- name: Install hatch
run: python -m pip install hatch
- name: check test coverage
run: python -m hatch run docs:cov
test:
runs-on: ubuntu-latest
needs: changelog-enforcer
strategy:
matrix:
# Run in all these versions of Python
python-version: [3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v3
# Setup which version of Python to use
- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
# Display the Python version being used
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install requisites
run: |
python -m pip install --upgrade pip hatch
- name: Run tests
run: hatch run test.py${{ matrix.python-version }}:no-cov
check-linted:
runs-on: ubuntu-latest
needs: changelog-enforcer
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: psf/black@stable
with:
src: "./src"