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

ci: Use uv based workflow #114

Merged
merged 4 commits into from
Jan 9, 2025
Merged
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
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 scan */*.md
51 changes: 0 additions & 51 deletions .github/workflows/update_python_requirements.yml

This file was deleted.

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

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

8 changes: 4 additions & 4 deletions tools/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tool.poetry]
name = "at-protocol-tools"
version = "0.1.1"
description = ""
name = "at-github-tools"
version = "0.2.0"
description = "Minimal project file to install pymarkdownlnt"
authors = ["Chris Swan <@cpswan>"]
readme = "README.md"
packages = [{include = "at_protocol_tools"}]
packages = [{include = "at_github_tools"}]

[tool.poetry.dependencies]
python = "^3.8"
Expand Down
Loading
Loading