Skip to content

Commit 922c244

Browse files
Fix chained method calls and add integration test with cosmicqc (#99)
* add cosmicqc and integration test * linting * make changes to ensure project integration * add fetch-depth 0 for version tags * Update run-tests.yml * set git config * fetch depth * bump to large version * readd git user * Update run-tests.yml * simulate version through poetry instead * revert to 0.0.0 in pyproject * reorder simulation of version * [pre-commit.ci lite] apply automatic fixes * correct pyproject and prevent pre-commit-lite * catch other tests; update pre-commit * remove dev from publish --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 8a675ab commit 922c244

File tree

9 files changed

+192
-87
lines changed

9 files changed

+192
-87
lines changed

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
- uses: actions/setup-python@v5
2424
with:
2525
python-version: "3.11"
26+
- name: Simulate version tag for cosmicqc install compatibility
27+
run: |
28+
poetry version 99.0.0
2629
- name: Setup for poetry
2730
run: |
2831
python -m pip install poetry poetry-dynamic-versioning

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
python -m pip install poetry poetry-dynamic-versioning
2929
- name: Install environment
30-
run: poetry install --no-interaction --no-ansi
30+
run: poetry install --without dev --no-interaction --no-ansi
3131
- name: poetry build distribution content
3232
run: poetry build
3333
- name: Publish package distributions to PyPI

.github/workflows/run-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ jobs:
2121
- name: Setup for poetry
2222
run: |
2323
python -m pip install poetry
24+
- name: Simulate version tag for cosmicqc install compatibility
25+
run: |
26+
poetry version 99.0.0
2427
- name: Install environment
2528
run: poetry install --no-interaction --no-ansi
2629
# run pre-commit
2730
- uses: pre-commit/action@v3.0.1
31+
id: pre_commit
2832
# run pre-commit ci lite for automated fixes
2933
- uses: pre-commit-ci/lite-action@v1.1.0
30-
if: ${{ !cancelled() }}
34+
if: ${{ !cancelled() && steps.pre_commit.outcome == 'failure' }}
3135
run_tests:
3236
strategy:
3337
matrix:
@@ -46,6 +50,9 @@ jobs:
4650
- name: Setup for poetry
4751
run: |
4852
python -m pip install poetry
53+
- name: Simulate version tag for cosmicqc install compatibility
54+
run: |
55+
poetry version 99.0.0
4956
- name: Install environment
5057
run: poetry install --no-interaction --no-ansi
5158
- name: Run pytest

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: check-added-large-files
1717
- id: detect-private-key
1818
- repo: https://github.com/python-poetry/poetry
19-
rev: "2.1.2"
19+
rev: "2.1.3"
2020
hooks:
2121
- id: poetry-check
2222
- repo: https://github.com/tox-dev/pyproject-fmt
@@ -45,7 +45,7 @@ repos:
4545
hooks:
4646
- id: validate-cff
4747
- repo: https://github.com/adrienverge/yamllint
48-
rev: v1.37.0
48+
rev: v1.37.1
4949
hooks:
5050
- id: yamllint
5151
exclude: pre-commit-config.yaml
@@ -54,7 +54,7 @@ repos:
5454
hooks:
5555
- id: actionlint
5656
- repo: https://github.com/astral-sh/ruff-pre-commit
57-
rev: "v0.11.7"
57+
rev: "v0.11.9"
5858
hooks:
5959
- id: ruff-format
6060
- id: ruff

media/coverage-badge.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)