Skip to content

Commit

Permalink
fixup: poetry 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Nov 7, 2023
1 parent 2870012 commit 320083b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
quote_type = single
quote_type = double
34 changes: 17 additions & 17 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
name: 'Set up repository for CI'
description: 'Install development dependencies'
name: "Set up repository for CI"
description: "Install development dependencies"

inputs:
python-version:
description: 'Python version to install'
default: '3.12'
description: "Python version to install"
default: "3.12"
poetry-version:
description: 'Poetry version to install'
default: '1.6.1'
description: "Poetry version to install"
default: "1.7.0"
cache:
description: 'Cache directory'
default: '${{ runner.temp }}/cache'
description: "Cache directory"
default: "${{ runner.temp }}/cache"

runs:
using: 'composite'
using: "composite"
steps:
- name: 'Set up Python'
- name: "Set up Python"
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
update-environment: false

- name: 'Set up Python 3.12 for Poetry'
- name: "Set up Python 3.12 for Poetry"
id: setup-poetry-python
uses: actions/setup-python@v4
with:
python-version: 3.12

- name: 'Set up dependency cache'
- name: "Set up dependency cache"
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ inputs.python-version }}-${{ inputs.poetry-version }}-${{ hashFiles('poetry.lock') }}
key: ${{ runner.os }}-${{ steps.setup-poetry-python.outputs.python-version }}-${{ steps.setup-python.outputs.python-version }}-${{ inputs.poetry-version }}-${{ hashFiles('poetry.lock') }}
path: ${{ inputs.cache }}

- name: 'Set up PATH on POSIX'
- name: "Set up PATH on POSIX"
if: ${{ runner.os != 'windows'}}
shell: bash
run: echo "${{ inputs.cache }}/tools/bin" >> $GITHUB_PATH

- name: 'Set up PATH on Windows'
- name: "Set up PATH on Windows"
if: ${{ runner.os == 'windows'}}
shell: bash
run: echo "${{ inputs.cache }}/tools/Scripts" >> $GITHUB_PATH

- name: 'Install Poetry'
- name: "Install Poetry"
shell: bash
run: |
if ! poetry --version; then
"${{ steps.setup-poetry-python.outputs.python-path }}" -m venv "${{ inputs.cache }}/tools"
pip install poetry==${{ inputs.poetry-version }}
fi
- name: 'Install development dependencies'
- name: "Install development dependencies"
shell: bash
run: |
poetry config cache-dir "${{ inputs.cache }}/poetry"
Expand Down
24 changes: 12 additions & 12 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
site_name: Decoy
site_description: 'Opinionated mocking library for Python.'
site_author: 'Michael Cousins'
site_url: 'https://michael.cousins.io/decoy/'
repo_url: 'https://github.com/mcous/decoy'
repo_name: 'mcous/decoy'
edit_uri: ''
site_description: "Opinionated mocking library for Python."
site_author: "Michael Cousins"
site_url: "https://michael.cousins.io/decoy/"
repo_url: "https://github.com/mcous/decoy"
repo_name: "mcous/decoy"
edit_uri: ""

nav:
- Getting Started: index.md
Expand All @@ -22,24 +22,24 @@ nav:
- license.md

theme:
name: 'material'
name: "material"
favicon: img/favicon.ico
icon:
logo: material/duck
features:
- navigation.instant
- navigation.sections
font: 'Open Sans'
code: 'Fira Mono'
font: "Open Sans"
code: "Fira Mono"
palette:
- media: '(prefers-color-scheme: light)'
- media: "(prefers-color-scheme: light)"
scheme: default
primary: black
accent: indigo
toggle:
icon: material/weather-sunny
name: Switch to dark mode
- media: '(prefers-color-scheme: dark)'
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: amber
accent: yellow
Expand All @@ -63,7 +63,7 @@ watch:

markdown_extensions:
- toc:
permalink: '#'
permalink: "#"
- admonition
- pymdownx.highlight
- pymdownx.superfences
Expand Down

0 comments on commit 320083b

Please sign in to comment.