Skip to content

Commit

Permalink
Fix build paths and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Mar 2, 2023
1 parent 8ab1244 commit 88f2653
Show file tree
Hide file tree
Showing 12 changed files with 414 additions and 414 deletions.
72 changes: 36 additions & 36 deletions .github/actions/build-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,45 @@ name: "Build Python Package"
description: "Build the package to upload to pypi."

runs:
using: "composite"
steps:
# Minimum supported version is Python 3.7
- name: Use Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
using: "composite"
steps:
# Minimum supported version is Python 3.7
- name: Use Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-build-vsix-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-build-vsix-
- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-build-vsix-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-build-vsix-
- name: Upgrade Pip
run: python -m pip install -U pip
shell: bash
- name: Upgrade Pip
run: python -m pip install -U pip
shell: bash

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

- name: Install nox
run: python -m pip install nox
shell: bash
- name: Install nox
run: python -m pip install nox
shell: bash

- name: Build sdist and wheels
run: python -m nox --session build
shell: bash
- name: Build sdist and wheels
run: python -m nox --session build
shell: bash

- name: Upload Packages to Artifacts
uses: actions/upload-artifact@v2
with:
name: pypi-packages
path: |
packages/python/dist/*.gz
packages/python/dist/*.whl
if-no-files-found: error
retention-days: 7
- name: Upload Packages to Artifacts
uses: actions/upload-artifact@v2
with:
name: pypi-packages
path: |
packages/python/dist/*.gz
packages/python/dist/*.whl
if-no-files-found: error
retention-days: 7
82 changes: 41 additions & 41 deletions .github/actions/lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,44 @@ name: "Lint"
description: "Lint Python code"

runs:
using: "composite"
steps:
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-lint-
- name: Upgrade Pip
run: python -m pip install -U pip
shell: bash

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

- name: Install nox
run: python -m pip install nox
shell: bash

- name: Check linting and formatting
run: python -m nox --session lint
shell: bash

- name: Rust Tool Chain setup
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt

- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
with:
manifest-path: packages/rust/lsprotocol/Cargo.toml
using: "composite"
steps:
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-lint-
- name: Upgrade Pip
run: python -m pip install -U pip
shell: bash

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

- name: Install nox
run: python -m pip install nox
shell: bash

- name: Check linting and formatting
run: python -m nox --session lint
shell: bash

- name: Rust Tool Chain setup
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt

- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
with:
manifest-path: packages/rust/lsprotocol/Cargo.toml
54 changes: 27 additions & 27 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: /
schedule:
interval: monthly
labels:
- "no-changelog"
- package-ecosystem: "github-actions"
directory: /
schedule:
interval: monthly
labels:
- "no-changelog"

- package-ecosystem: "pip"
directory: /generator
schedule:
interval: daily
labels:
- "no-changelog"
- package-ecosystem: "pip"
directory: /generator
schedule:
interval: daily
labels:
- "no-changelog"

- package-ecosystem: "pip"
directory: /tests
schedule:
interval: daily
labels:
- "no-changelog"
- package-ecosystem: "pip"
directory: /tests
schedule:
interval: daily
labels:
- "no-changelog"

- package-ecosystem: "pip"
directory: /
schedule:
interval: daily
labels:
- "debt"
commit-message:
include: "scope"
prefix: "pip"
- package-ecosystem: "pip"
directory: /
schedule:
interval: daily
labels:
- "debt"
commit-message:
include: "scope"
prefix: "pip"
26 changes: 13 additions & 13 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
changelog:
exclude:
labels:
- "no-changelog"
exclude:
labels:
- "no-changelog"

categories:
- title: Enhancements
labels:
- "feature-request"
categories:
- title: Enhancements
labels:
- "feature-request"

- title: Bug Fixes
labels:
- "bug"
- title: Bug Fixes
labels:
- "bug"

- title: Code Health
labels:
- "debt"
- title: Code Health
labels:
- "debt"
92 changes: 46 additions & 46 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,59 +12,59 @@
name: "CodeQL"

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: "15 16 * * 2"
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: "15 16 * * 2"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

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

steps:
- name: Checkout repository
uses: actions/checkout@v3
steps:
- name: Checkout repository
uses: actions/checkout@v3

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

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

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

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

#- run: |
# make bootstrap
# make release
#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Loading

0 comments on commit 88f2653

Please sign in to comment.