Skip to content

Commit

Permalink
Add pull_request_open pipeline workflow. (#6)
Browse files Browse the repository at this point in the history
* 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
alemoraru authored May 31, 2023
1 parent 2d767b7 commit 259c34c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
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.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 259c34c

Please sign in to comment.