fix ci
This commit is contained in:
parent
f643b6713a
commit
84f25d5591
2 changed files with 26 additions and 6 deletions
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
|
|
@ -7,31 +7,48 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stylua:
|
lua-format:
|
||||||
|
name: Lua Formatting
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: JohnnyMorganz/stylua-action@v4
|
- uses: JohnnyMorganz/stylua-action@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
version: latest
|
version: latest
|
||||||
args: --check .
|
args: --check .
|
||||||
|
|
||||||
|
lua-lint:
|
||||||
|
name: Lua Linting
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- name: Lint with Selene
|
- name: Lint with Selene
|
||||||
uses: NTBBloodbath/selene-action@v1.0.0
|
uses: NTBBloodbath/selene-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
args: --display-style quiet .
|
args: --display-style quiet .
|
||||||
|
|
||||||
|
python-format:
|
||||||
|
name: Python Formatting
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v4
|
uses: astral-sh/setup-uv@v4
|
||||||
|
|
||||||
- name: Install ruff
|
- name: Install ruff
|
||||||
run: uv tool install ruff
|
run: uv tool install ruff
|
||||||
|
|
||||||
- name: Check Python formatting with ruff
|
- name: Check Python formatting with ruff
|
||||||
run: ruff format --check templates/scrapers/
|
run: ruff format --check templates/scrapers/
|
||||||
|
|
||||||
|
python-lint:
|
||||||
|
name: Python Linting
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v4
|
||||||
|
- name: Install ruff
|
||||||
|
run: uv tool install ruff
|
||||||
- name: Lint Python files with ruff
|
- name: Lint Python files with ruff
|
||||||
run: ruff check templates/scrapers/
|
run: ruff check templates/scrapers/
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,10 @@ neovim plugin for competitive programming.
|
||||||
|
|
||||||
- Neovim 0.9+
|
- Neovim 0.9+
|
||||||
- `make`
|
- `make`
|
||||||
- [uv](https://docs.astral.sh/uv/) for problem scraping (optional)
|
- [uv](https://docs.astral.sh/uv/): problem scraping (optional)
|
||||||
- [LuaSnip](https://github.com/L3MON4D3/LuaSnip) for snippets (optional)
|
- [LuaSnip](https://github.com/L3MON4D3/LuaSnip): contest-specific snippets (optional)
|
||||||
|
- [vim-zoom](https://github.com/dhruvasagar/vim-zoom): better diff view
|
||||||
|
(optional)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
@ -42,6 +44,7 @@ Using [lazy.nvim](https://github.com/folke/lazy.nvim):
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
|
- remove vim-zoom dependency
|
||||||
- vimdocs
|
- vimdocs
|
||||||
- example video
|
- example video
|
||||||
- more flexible setup (more of a question of philosophy)
|
- more flexible setup (more of a question of philosophy)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue