Skip to content

Commit e7d52fd

Browse files
authored
Fix build paths and formatting (#173)
1 parent 33c22c4 commit e7d52fd

12 files changed

Lines changed: 414 additions & 414 deletions

File tree

.github/actions/build-package/action.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,45 @@ name: "Build Python Package"
22
description: "Build the package to upload to pypi."
33

44
runs:
5-
using: "composite"
6-
steps:
7-
# Minimum supported version is Python 3.7
8-
- name: Use Python 3.7
9-
uses: actions/setup-python@v2
10-
with:
11-
python-version: 3.7
5+
using: "composite"
6+
steps:
7+
# Minimum supported version is Python 3.7
8+
- name: Use Python 3.7
9+
uses: actions/setup-python@v2
10+
with:
11+
python-version: 3.7
1212

13-
- name: Pip cache
14-
uses: actions/cache@v2
15-
with:
16-
path: ~/.cache/pip
17-
key: ${{ runner.os }}-pip-build-vsix-${{ hashFiles('**/requirements.txt') }}
18-
restore-keys: |
19-
${{ runner.os }}-pip-build-vsix-
13+
- name: Pip cache
14+
uses: actions/cache@v2
15+
with:
16+
path: ~/.cache/pip
17+
key: ${{ runner.os }}-pip-build-vsix-${{ hashFiles('**/requirements.txt') }}
18+
restore-keys: |
19+
${{ runner.os }}-pip-build-vsix-
2020
21-
- name: Upgrade Pip
22-
run: python -m pip install -U pip
23-
shell: bash
21+
- name: Upgrade Pip
22+
run: python -m pip install -U pip
23+
shell: bash
2424

25-
# For faster/better builds of sdists.
26-
- name: Install build pre-requisite
27-
run: python -m pip install wheel
28-
shell: bash
25+
# For faster/better builds of sdists.
26+
- name: Install build pre-requisite
27+
run: python -m pip install wheel
28+
shell: bash
2929

30-
- name: Install nox
31-
run: python -m pip install nox
32-
shell: bash
30+
- name: Install nox
31+
run: python -m pip install nox
32+
shell: bash
3333

34-
- name: Build sdist and wheels
35-
run: python -m nox --session build
36-
shell: bash
34+
- name: Build sdist and wheels
35+
run: python -m nox --session build
36+
shell: bash
3737

38-
- name: Upload Packages to Artifacts
39-
uses: actions/upload-artifact@v2
40-
with:
41-
name: pypi-packages
42-
path: |
43-
packages/python/dist/*.gz
44-
packages/python/dist/*.whl
45-
if-no-files-found: error
46-
retention-days: 7
38+
- name: Upload Packages to Artifacts
39+
uses: actions/upload-artifact@v2
40+
with:
41+
name: pypi-packages
42+
path: |
43+
packages/python/dist/*.gz
44+
packages/python/dist/*.whl
45+
if-no-files-found: error
46+
retention-days: 7

.github/actions/lint/action.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,44 @@ name: "Lint"
22
description: "Lint Python code"
33

44
runs:
5-
using: "composite"
6-
steps:
7-
- name: Install Python
8-
uses: actions/setup-python@v2
9-
with:
10-
python-version: "3.x"
11-
12-
- name: Pip cache
13-
uses: actions/cache@v2
14-
with:
15-
path: ~/.cache/pip
16-
key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/requirements.txt') }}
17-
restore-keys: |
18-
${{ runner.os }}-pip-lint-
19-
20-
- name: Upgrade Pip
21-
run: python -m pip install -U pip
22-
shell: bash
23-
24-
# For faster/better builds of sdists.
25-
- name: Install build pre-requisite
26-
run: python -m pip install wheel
27-
shell: bash
28-
29-
- name: Install nox
30-
run: python -m pip install nox
31-
shell: bash
32-
33-
- name: Check linting and formatting
34-
run: python -m nox --session lint
35-
shell: bash
36-
37-
- name: Rust Tool Chain setup
38-
uses: actions-rust-lang/setup-rust-toolchain@v1
39-
with:
40-
components: rustfmt
41-
42-
- name: Rustfmt Check
43-
uses: actions-rust-lang/rustfmt@v1
44-
with:
45-
manifest-path: packages/rust/lsprotocol/Cargo.toml
5+
using: "composite"
6+
steps:
7+
- name: Install Python
8+
uses: actions/setup-python@v2
9+
with:
10+
python-version: "3.x"
11+
12+
- name: Pip cache
13+
uses: actions/cache@v2
14+
with:
15+
path: ~/.cache/pip
16+
key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/requirements.txt') }}
17+
restore-keys: |
18+
${{ runner.os }}-pip-lint-
19+
20+
- name: Upgrade Pip
21+
run: python -m pip install -U pip
22+
shell: bash
23+
24+
# For faster/better builds of sdists.
25+
- name: Install build pre-requisite
26+
run: python -m pip install wheel
27+
shell: bash
28+
29+
- name: Install nox
30+
run: python -m pip install nox
31+
shell: bash
32+
33+
- name: Check linting and formatting
34+
run: python -m nox --session lint
35+
shell: bash
36+
37+
- name: Rust Tool Chain setup
38+
uses: actions-rust-lang/setup-rust-toolchain@v1
39+
with:
40+
components: rustfmt
41+
42+
- name: Rustfmt Check
43+
uses: actions-rust-lang/rustfmt@v1
44+
with:
45+
manifest-path: packages/rust/lsprotocol/Cargo.toml

.github/dependabot.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "github-actions"
4-
directory: /
5-
schedule:
6-
interval: monthly
7-
labels:
8-
- "no-changelog"
3+
- package-ecosystem: "github-actions"
4+
directory: /
5+
schedule:
6+
interval: monthly
7+
labels:
8+
- "no-changelog"
99

10-
- package-ecosystem: "pip"
11-
directory: /generator
12-
schedule:
13-
interval: daily
14-
labels:
15-
- "no-changelog"
10+
- package-ecosystem: "pip"
11+
directory: /generator
12+
schedule:
13+
interval: daily
14+
labels:
15+
- "no-changelog"
1616

17-
- package-ecosystem: "pip"
18-
directory: /tests
19-
schedule:
20-
interval: daily
21-
labels:
22-
- "no-changelog"
17+
- package-ecosystem: "pip"
18+
directory: /tests
19+
schedule:
20+
interval: daily
21+
labels:
22+
- "no-changelog"
2323

24-
- package-ecosystem: "pip"
25-
directory: /
26-
schedule:
27-
interval: daily
28-
labels:
29-
- "debt"
30-
commit-message:
31-
include: "scope"
32-
prefix: "pip"
24+
- package-ecosystem: "pip"
25+
directory: /
26+
schedule:
27+
interval: daily
28+
labels:
29+
- "debt"
30+
commit-message:
31+
include: "scope"
32+
prefix: "pip"

.github/release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
changelog:
2-
exclude:
3-
labels:
4-
- "no-changelog"
2+
exclude:
3+
labels:
4+
- "no-changelog"
55

6-
categories:
7-
- title: Enhancements
8-
labels:
9-
- "feature-request"
6+
categories:
7+
- title: Enhancements
8+
labels:
9+
- "feature-request"
1010

11-
- title: Bug Fixes
12-
labels:
13-
- "bug"
11+
- title: Bug Fixes
12+
labels:
13+
- "bug"
1414

15-
- title: Code Health
16-
labels:
17-
- "debt"
15+
- title: Code Health
16+
labels:
17+
- "debt"

.github/workflows/codeql-analysis.yml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -12,59 +12,59 @@
1212
name: "CodeQL"
1313

1414
on:
15-
push:
16-
branches: [main]
17-
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [main]
20-
schedule:
21-
- cron: "15 16 * * 2"
15+
push:
16+
branches: [main]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [main]
20+
schedule:
21+
- cron: "15 16 * * 2"
2222

2323
jobs:
24-
analyze:
25-
name: Analyze
26-
runs-on: ubuntu-latest
27-
permissions:
28-
actions: read
29-
contents: read
30-
security-events: write
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
3131

32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
language: ["python"]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: ["python"]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

39-
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v3
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

53-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54-
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v2
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v2
5757

58-
# ℹ️ Command-line programs to run using the OS shell.
59-
# 📚 https://git.io/JvXDl
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
6060

61-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62-
# and modify them (or add more) to build your code if your project
63-
# uses a compiled language
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
6464

65-
#- run: |
66-
# make bootstrap
67-
# make release
65+
#- run: |
66+
# make bootstrap
67+
# make release
6868

69-
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v2
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)