diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 02c1ada..009aba6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,7 +42,8 @@ jobs: path: | ~/.local/bin/poetry ~/.local/share/pypoetry - key: ${{ runner.os }}-poetry-installation-${{ matrix.python-version }}-${{ env.poetry_version }}-0 + key: |- + ${{ runner.os }}-poetry-installation-${{ matrix.python-version }}-${{ env.poetry_version }}-0 - name: Install Poetry run: curl -sSL https://install.python-poetry.org | python - @@ -53,7 +54,8 @@ jobs: uses: actions/cache@v3 with: path: ~/.cache/pypoetry - key: ${{ runner.os }}-poetry-cache-${{ matrix.python-version }}-${{ env.poetry_version }}-${{ hashFiles('poetry.lock') }}-0 + key: |- + ${{ runner.os }}-poetry-cache-${{ matrix.python-version }}-${{ env.poetry_version }}-${{ hashFiles('poetry.lock') }}-0 restore-keys: | ${{ runner.os }}-poetry-cache-${{ matrix.python-version }}-${{ env.poetry_version }}- ${{ runner.os }}-poetry-cache-${{ matrix.python-version }}- @@ -65,7 +67,8 @@ jobs: # Tests. - name: Run tests with Pytest - run: poetry run pytest --cov-report=term-missing --cov-report=xml --cov=src + run: | + poetry run pytest --cov-report=term-missing --cov-report=xml --cov=src - name: Run multi process tests with Pytest run: | diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index b557f37..4c7e76b 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -50,7 +50,8 @@ jobs: path: | ~/.local/bin/poetry ~/.local/share/pypoetry - key: ${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0 + key: |- + ${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0 - name: Install Poetry run: curl -sSL https://install.python-poetry.org | python - @@ -61,7 +62,8 @@ jobs: uses: actions/cache@v3 with: path: ~/.cache/pypoetry - key: ${{ runner.os }}-poetry-cache-${{ env.python_version }}-${{ env.poetry_version }}-${{ hashFiles('poetry.lock') }}-0 + key: |- + ${{ runner.os }}-poetry-cache-${{ env.python_version }}-${{ env.poetry_version }}-${{ hashFiles('poetry.lock') }}-0 restore-keys: | ${{ runner.os }}-poetry-cache-${{ env.python_version }}-${{ env.poetry_version }}- ${{ runner.os }}-poetry-cache-${{ env.python_version }}- diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 673f2bc..d5bd143 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,7 +44,8 @@ jobs: path: | ~/.local/bin/poetry ~/.local/share/pypoetry - key: ${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0 + key: |- + ${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0 - name: Install Poetry run: curl -sSL https://install.python-poetry.org | python - diff --git a/.github/workflows/testpypi.yaml b/.github/workflows/testpypi.yaml index cbebfb2..a74b00f 100644 --- a/.github/workflows/testpypi.yaml +++ b/.github/workflows/testpypi.yaml @@ -44,7 +44,8 @@ jobs: path: | ~/.local/bin/poetry ~/.local/share/pypoetry - key: ${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0 + key: |- + ${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0 - name: Install Poetry run: curl -sSL https://install.python-poetry.org | python - @@ -55,11 +56,11 @@ jobs: # Release to TestPyPI. - name: Adjust package version - if: ${{ inputs.version != '' }} + if: ${{ inputs.version != '' }} run: poetry version -- ${{ inputs.version }} - name: Adjust __version__ variable - if: ${{ inputs.version != '' }} + if: ${{ inputs.version != '' }} run: | pversion="$(poetry version --short)" sed -i "/^__version__/c\__version__ = \"$pversion\"" src/*/__init__.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 6edf8c7..fbe0866 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -516,8 +516,8 @@ Nothing. Dummy release. ### Changed -- Renamed project from *Prometheus FastAPI Exporter* to *Prometheus FastAPI - Instrumentator*. Reasoning behind this change: Focus of this project is the +- Renamed project from _Prometheus FastAPI Exporter_ to _Prometheus FastAPI + Instrumentator_. Reasoning behind this change: Focus of this project is the instrumentation, not exposition of metrics. ## [1.0.2](https://github.com/trallnag/prometheus-fastapi-instrumentator/compare/v1.0.1...v1.0.2) / 2020-07-15