Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump the development-dependencies group with 10 updates #20

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
version: 2
updates:

Expand Down
93 changes: 93 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
on:
workflow_dispatch:
push:
branches: [main]
pull_request:

name: Mkdocs CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

env:
PYTHON_VERSION: "3.11"

jobs:
docs:
name: Test, build and deploy docs
env:
PYTHONDEVMODE: 1

runs-on: "ubuntu-latest"

strategy:
fail-fast: false
matrix:
python-version: ["3.11"]


# Label used to access the service container
postgres:
# Docker Hub image
image: postgres:13-alpine
# Provide the password for postgres
env:
POSTGRES_DB: ff_dev
POSTGRES_USER: firefighter
POSTGRES_PASSWORD: firefighter
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
# Docker Hub image
image: redis:6-alpine
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v4
- name: Setup PDM
# XXX Use the upstream version when repository is not private
uses: ManoManoTech/setup-pdm@main
id: setup-pdm
with:
python-version: ${{ matrix.python-version }}
cache: true
allow-python-prereleases: true

- name: Install dependencies
run: pdm install -v && pdm info

- name: "Check for mkdocs build --strict"
run: |
pdm run docs-build --strict
# If pull request or not main branch and not a tag
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch'

- name: Deploy docs (dev)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
export SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
mike deploy dev --update-aliases --title "dev (${SHORT_SHA})" --push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy docs (tag)
if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push'
run: |
mike deploy ${{ github.ref }} latest --push --update-aliases
mike set-default latest --push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
with:
ref: ${{ inputs.sha }}

- name: Set local tag for version
if: ${{ inputs.tag }}
run: |
git config user.email "[email protected]"
git config user.name "FireFighter Release CI"
git tag -m "v${{ inputs.tag }}" "v${{ inputs.tag }}"

- name: Setup Python & PDM
# XXX Use the upstream version when repository is not private
uses: ManoManoTech/setup-pdm@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync_python_deps.yml.disabled
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Update Python dependencies with PDM
# Other dependeices updates are managed dy renovatebot
# Other dependencies updates are managed by renovatebot

on:
schedule:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FireFighter

![PyPI - Version](https://img.shields.io/pypi/v/firefighter-incident) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/firefighter-incident) ![PyPI - License](https://img.shields.io/pypi/l/firefighter-incident) [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8170/badge)](https://www.bestpractices.dev/projects/8170) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![PyPI - Version](https://img.shields.io/pypi/v/firefighter-incident)](https://pypi.org/project/firefighter-incident/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/firefighter-incident)](https://pypi.org/project/firefighter-incident/) [![PyPI - License](https://img.shields.io/pypi/l/firefighter-incident)](https://manomanotech.github.io/firefighter-incident/latest/license/) [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8170/badge)](https://www.bestpractices.dev/projects/8170) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

FireFighter is ManoMano's in-house Incident Management Tool.

Expand Down
9 changes: 9 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,14 @@ extra:
generator: false
version:
provider: mike
default:
- latest
- dev
social:
- icon: fontawesome/brands/github
link: https://github.com/ManoManoTech/firefighter-incident
- icon: fontawesome/brands/python
link: https://pypi.org/project/firefighter-incident/

nav:
- Home:
Expand Down Expand Up @@ -170,12 +175,16 @@ plugins:
- markdown-exec
- search
- section-index
- social:
enabled: !ENV [CI, false]
- mike:
canonical_version: "latest"
version_selector: true
- redirects:
redirect_maps:
contributing.md: contributing/0000-README.md
- minify:
minify_html: true
- mkdocstrings:
handlers:
python:
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"hyperscript.org": "^0.9.12"
},
"devDependencies": {
"@babel/core": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/core": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-inject": "^5.0.5",
Expand All @@ -33,18 +33,18 @@
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/line-clamp": "^0.4.4",
"@tailwindcss/typography": "^0.5.10",
"autoprefixer": "^10.4.16",
"autoprefixer": "^10.4.17",
"clean-css-cli": "^5.6.2",
"cross-env": "^7.0.3",
"daisyui": "^2.51.6",
"postcss": "^8.4.31",
"postcss-import": "^15.1.0",
"rollup": "^4.7.0",
"daisyui": "^4.6.0",
"postcss": "^8.4.33",
"postcss-import": "^16.0.0",
"rollup": "^4.9.6",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-string": "^3.0.0",
"stylelint": "^15.11.0",
"stylelint": "^16.2.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-standard": "^34.0.0",
"tailwindcss": "^3.3.5"
"stylelint-config-standard": "^36.0.0",
"tailwindcss": "^3.4.1"
}
}
Loading