From ce6db6bb8574e4fb71e32c5f2f04778732bccd5c Mon Sep 17 00:00:00 2001 From: Doctor Date: Fri, 16 Feb 2024 16:06:48 +0300 Subject: [PATCH] Add docs workflow, bump actions versions --- .github/workflows/deploy-docs.yaml | 24 ++++++++++++++++++++++++ .github/workflows/lint.yaml | 6 +++--- .github/workflows/test.yaml | 6 +++--- 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/deploy-docs.yaml diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml new file mode 100644 index 0000000..885deb0 --- /dev/null +++ b/.github/workflows/deploy-docs.yaml @@ -0,0 +1,24 @@ +name: Lint +on: [push] +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.11 + - name: Cache PIP + uses: actions/cache@v4 + with: + path: | + ~/.cache/pip + .venv + key: pip-${{ matrix.python-version }}-${{ hashFiles('pdm.lock') }} + - name: Install PDM + run: | + pip install pdm + pdm sync --clean + - run: mkdocs gh-deploy --force diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 119af19..074354c 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -13,13 +13,13 @@ jobs: - ruff check . steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache PIP - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/pip diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bc51238..039bb8b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,13 +11,13 @@ jobs: - 3.12 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache PIP - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/pip