-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pull_request_open pipeline workflow. (#6)
* Add pull_request_open pipeline workflow. * Do not mention pylint version. * Install all pip packages. * Install only some pip packages. * Upgrade set-up python to v4.
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build Pipeline | ||
on: [pull_request] | ||
|
||
jobs: | ||
pylint: | ||
name: Check code style | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Generate GitHub App Token | ||
id: generate_github_app_token | ||
uses: tibdex/[email protected] | ||
with: | ||
app_id: ${{ secrets.GH_APP_ID }} | ||
private_key: ${{ secrets.GH_APP_KEY }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ steps.generate_github_app_token.outputs.token }} | ||
persist-credentials: true | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint dslinter | ||
- name: Run Pylint | ||
run: pylint src | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ dvc==2.58.1 | |
dvc_gdrive==2.19.2 | ||
pylint==2.12.2 | ||
mllint==0.12.2 | ||
dslinter==2.0.9 | ||
dslinter==2.0.9 |