Skip to content

Commit 15d15f7

Browse files
authored
Merge pull request #3 from finecode-dev/feature/ci-cd
CI/CD config
2 parents 80b8f93 + af006c7 commit 15d15f7

File tree

11 files changed

+729
-657
lines changed

11 files changed

+729
-657
lines changed

.github/workflows/ci-cd.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
merge_group:
5+
push:
6+
pull_request:
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
max-parallel: 1
18+
matrix:
19+
os: [ubuntu-24.04, macos-13, windows-2022]
20+
python-version: ["3.13"]
21+
include:
22+
- os: ubuntu-24.04
23+
name: Linux
24+
- os: macos-13
25+
name: macOS
26+
- os: windows-2022
27+
name: Windows
28+
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- name: Install poetry
33+
run: pipx install poetry==2.1.2
34+
35+
- name: Set up Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v5
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
cache: "poetry"
40+
41+
- name: Install dependencies
42+
run: |
43+
# poetry default git client `dulwich` doesn't work properly with git urls
44+
# to dependencies, which we use
45+
poetry config system-git-client true
46+
47+
poetry install
48+
shell: bash
49+
50+
- name: Lint
51+
run: |
52+
poetry run python -m finecode run lint
53+
shell: bash
54+
55+
# - name: Run unit tests
56+
# if: ${{ !cancelled() }}
57+
# run: |
58+
# poetry run python -m pytest tests/
59+
# shell: bash

extensions/fine_python_ast/poetry.lock

Lines changed: 108 additions & 108 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/fine_python_ast/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">=3.11, < 3.14"
88
dependencies = [
9-
"finecode_extension_api @ git+ssh://git@github.com:finecode-dev/finecode.git#subdirectory=finecode_extension_api",
9+
"finecode_extension_api @ git+https://github.com/finecode-dev/finecode.git#subdirectory=finecode_extension_api",
1010
]
1111

1212

extensions/fine_python_black/poetry.lock

Lines changed: 112 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/fine_python_black/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">=3.11, < 3.14"
88
dependencies = [
9-
"finecode_extension_api @ git+ssh://git@github.com:finecode-dev/finecode.git#subdirectory=finecode_extension_api",
9+
"finecode_extension_api @ git+https://github.com/finecode-dev/finecode.git#subdirectory=finecode_extension_api",
1010
"black (>=25.1.0,<26.0.0)",
1111
]
1212

extensions/fine_python_import_linter/poetry.lock

Lines changed: 229 additions & 216 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/fine_python_import_linter/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">= 3.11, < 3.14"
88
dependencies = [
9-
"finecode_extension_api @ git+ssh://git@github.com:finecode-dev/finecode.git#subdirectory=finecode_extension_api",
9+
"finecode_extension_api @ git+https://github.com/finecode-dev/finecode.git#subdirectory=finecode_extension_api",
1010
"import-linter (>=2.1,<3.0)",
1111
]
1212

extensions/fine_python_isort/poetry.lock

Lines changed: 108 additions & 108 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/fine_python_isort/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">= 3.11, < 3.14"
88
dependencies = [
9-
"finecode_extension_api @ git+ssh://git@github.com:finecode-dev/finecode.git#subdirectory=finecode_extension_api",
9+
"finecode_extension_api @ git+https://github.com/finecode-dev/finecode.git#subdirectory=finecode_extension_api",
1010
"isort (>=5.13, <6)",
1111
]
1212

extensions/fine_python_mypy/poetry.lock

Lines changed: 108 additions & 108 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)