Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PainterQubits/paramdb
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.15.2
Choose a base ref
...
head repository: PainterQubits/paramdb
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Jul 12, 2024

  1. Add dev scripts with Poe the Poet

    alexhad6 committed Jul 12, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    alexhad6 Alex Hadley
    Copy the full SHA
    30580b7 View commit details
  2. Fix Codecov

    alexhad6 committed Jul 12, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    alexhad6 Alex Hadley
    Copy the full SHA
    b04c090 View commit details
  3. Change Codecov action step name

    alexhad6 committed Jul 12, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    alexhad6 Alex Hadley
    Copy the full SHA
    6172548 View commit details
Showing with 577 additions and 282 deletions.
  1. +13 −20 .github/workflows/ci.yml
  2. +546 −262 poetry.lock
  3. +18 −0 pyproject.toml
33 changes: 13 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ on:

env:
POETRY_VERSION: "1.8.3"
POETHEPOET_VERSION: "0.27.0"
MAIN_PYTHON_VERSION: "3.9"
PACKAGE_NAME: "paramdb"

@@ -24,7 +25,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Poetry
run: pipx install poetry==${{ env.POETRY_VERSION }}
run: |
pipx install poetry==${{ env.POETRY_VERSION }}
pipx inject poetry poethepoet==${{ env.POETHEPOET_VERSION }}
- name: Set up Python with Poetry cache
uses: actions/setup-python@v5
@@ -35,18 +38,6 @@ jobs:
- name: Install dependencies
run: poetry install --all-extras --without docs

- name: Check formatting (Black)
if: matrix.python_version == env.MAIN_PYTHON_VERSION
run: poetry run black ${{ env.PACKAGE_NAME }} tests --check

- name: Lint (Flake8)
if: matrix.python_version == env.MAIN_PYTHON_VERSION
run: poetry run flake8 ${{ env.PACKAGE_NAME }} tests

- name: Lint (Pylint)
if: matrix.python_version == env.MAIN_PYTHON_VERSION
run: poetry run pylint ${{ env.PACKAGE_NAME }} tests

- name: Mypy cache
if: matrix.python_version == env.MAIN_PYTHON_VERSION
uses: actions/cache@v4
@@ -56,18 +47,20 @@ jobs:
restore-keys: |
mypy-${{ runner.os }}-python-${{ matrix.python_version }}-
- name: Type check (Mypy)
- name: Lint
if: matrix.python_version == env.MAIN_PYTHON_VERSION
run: poetry run mypy ${{ env.PACKAGE_NAME }} tests
run: poetry lint

- name: Test (Pytest)
- name: Test
if: matrix.python_version != env.MAIN_PYTHON_VERSION
run: poetry run pytest
run: poetry test

- name: Test (Pytest) with coverage
- name: Test with coverage
if: matrix.python_version == env.MAIN_PYTHON_VERSION
run: poetry run pytest --cov=${{ env.PACKAGE_NAME }} --cov-report=xml
run: poetry test --cov=${{ env.PACKAGE_NAME }} --cov-report=xml

- name: Upload coverage reports to Codecov
- name: Upload coverage to Codecov
if: matrix.python_version == env.MAIN_PYTHON_VERSION
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Loading