-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Actions refactor, add epic-comments lint and test
- Loading branch information
Showing
5 changed files
with
111 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,41 @@ | ||
### | ||
### Workflow that lints code in pull requests | ||
### | ||
|
||
name: Lint | ||
|
||
# Note: No name so it uses the name associated with the pull request merge to main | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'epic-comments/**' | ||
|
||
jobs: | ||
lint-epic-comments: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get Python Version | ||
run: echo "PYTHON_VERSION=$(cat .python-version | grep ^[^#])" >> $GITHUB_ENV | ||
|
||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: "pipenv" | ||
|
||
- name: Install pipenv | ||
run: pip install --user pipenv | ||
|
||
- name: Install Python dependencies | ||
working-directory: ./epic-comments | ||
run: make setup-dev | ||
|
||
- name: Lint epic-comments with Black linter | ||
working-directory: ./epic-comments | ||
run: make lint |
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
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,41 @@ | ||
### | ||
### Workflow that test code in pull requests | ||
### | ||
|
||
name: Test | ||
|
||
# Note: No name so it uses the name associated with the pull request merge to main | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'epic-comments/**' | ||
|
||
jobs: | ||
test-epic-comments: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get Python Version | ||
run: echo "PYTHON_VERSION=$(cat .python-version | grep ^[^#])" >> $GITHUB_ENV | ||
|
||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: "pipenv" | ||
|
||
- name: Install pipenv | ||
run: pip install --user pipenv | ||
|
||
- name: Install Python dependencies | ||
working-directory: ./epic-comments | ||
run: make setup-dev | ||
|
||
- name: Test epic-comments | ||
working-directory: ./epic-comments | ||
run: make test |
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