Skip to content

Commit

Permalink
Merge pull request #217 from atsign-foundation/cpswan-uv-workflows
Browse files Browse the repository at this point in the history
ci: Use uv based workflow
  • Loading branch information
cpswan authored Jan 8, 2025
2 parents d221e3e + 62375f0 commit ccb1513
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 60 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/pymarkdownlnt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,22 @@ permissions: # added using https://github.com/step-security/secure-workflows

jobs:
lint-markdown:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Lint Markdown
steps:
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
- name: Install uv
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
with:
python-version: 3.12 #install the python needed
version: "0.5.15"
- name: checkout repo content
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install and run linter
run: |-
python3 -m pip install --require-hashes -r tools/requirements.txt
sudo apt-get install python3-poetry-plugin-export
cd tools
uv venv
. .venv/bin/activate
poetry export --format requirements.txt --output requirements.txt
uv pip install --require-hashes -r requirements.txt
cd ..
pymarkdownlnt -s 'plugins.md024.siblings_only=$!True' scan */*.md
52 changes: 0 additions & 52 deletions .github/workflows/update_python_requirements.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

197 changes: 197 additions & 0 deletions tools/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "at-protocol-tools"
version = "0.1.1"
description = ""
description = "Minimal project file to install pymarkdownlnt"
authors = ["Chris Swan <@cpswan>"]
readme = "README.md"
packages = [{include = "at_protocol_tools"}]
Expand Down

0 comments on commit ccb1513

Please sign in to comment.