-
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.
Merge pull request #6 from RohithSurya/features/gh_actions
Github workflow for docs, coverage, tests
- Loading branch information
Showing
11 changed files
with
186 additions
and
40 deletions.
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,18 @@ | ||
<!-- Before opening a PR, please read our PR guidelines in CONTRIBUTING.md--> | ||
|
||
<!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> | ||
<!-- and include the issue number in front in square brackets. --> | ||
<!-- e.g. [#1020] Make bash_runcommand in WorkUnitSubmit class configurable --> | ||
|
||
<!-- Add the issue number to the "Fixes" keyword below. This will automatically close the issue once the PR is merged --> | ||
Fixes # | ||
|
||
### Type of change: <!--- Bug, Feature, Test, Doc --> | ||
|
||
### Description | ||
<!--- Describe your changes in detail --> | ||
|
||
### Checklist | ||
- Did I make sure I wrote the tests if I have implemented new functionality? | ||
- Did I make sure the test coverage meets the guidelines specified in CONTRIBUTING.md? | ||
- Did I lint and format the code? |
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,28 @@ | ||
name: Make build | ||
on: | ||
push: | ||
branches: | ||
main | ||
pull_request: | ||
branches: | ||
main | ||
env: | ||
POETRY_HOME: ${{vars.POETRY_HOME}} | ||
POETRY: ${{vars.POETRY}} | ||
jobs: | ||
poetry: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install Poetry and dependencies | ||
run: ./scripts/poetry-install.sh | ||
- name: Make build | ||
run: $POETRY build | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: ./dist |
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,25 @@ | ||
name: Make docs | ||
on: | ||
push: | ||
branches: | ||
main | ||
pull_request: | ||
branches: | ||
main | ||
env: | ||
POETRY_HOME: ${{vars.POETRY_HOME}} | ||
POETRY: ${{vars.POETRY}} | ||
jobs: | ||
poetry: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install Poetry and dependencies | ||
run: ./scripts/poetry-install.sh | ||
- name: Check docs | ||
working-directory: ./docs | ||
run: $POETRY run make html |
This file was deleted.
Oops, something went wrong.
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: Test Coverage | ||
on: | ||
push: | ||
branches: | ||
main | ||
pull_request: | ||
branches: | ||
main | ||
workflow_dispatch: | ||
env: | ||
POETRY_HOME: ${{vars.POETRY_HOME}} | ||
POETRY: ${{vars.POETRY}} | ||
jobs: | ||
coverage: | ||
name: PyTest coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install Poetry and dependencies | ||
run: ./scripts/poetry-install.sh | ||
- name: Run Tests | ||
run: | | ||
$POETRY run coverage run -m pytest | ||
continue-on-error: true | ||
- name: Run Coverage | ||
run: $POETRY run coverage xml | ||
- name: Get Cover | ||
uses: orgoro/[email protected] | ||
with: | ||
coverageFile: ./coverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,14 @@ | ||
name: Ruff | ||
on: | ||
push: | ||
branches: | ||
main | ||
pull_request: | ||
branches: | ||
main | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: chartboost/ruff-action@v1 |
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,32 @@ | ||
name: Run tests | ||
on: | ||
push: | ||
branches: | ||
main | ||
pull_request: | ||
branches: | ||
main | ||
env: | ||
POETRY_HOME: ${{vars.POETRY_HOME}} | ||
POETRY: ${{vars.POETRY}} | ||
HPCC_USERNAME: ${{ secrets.HPCC_USERNAME }} | ||
HPCC_PASSWORD: ${{ secrets.HPCC_PASSWORD }} | ||
DUMMY_USERNAME: ${{ secrets.DUMMY_USERNAME }} | ||
DUMMY_PASSWORD: ${{ secrets.DUMMY_PASSWORD }} | ||
HPCC_HOST: ${{ secrets.HPCC_HOST }} | ||
HPCC_PORT: ${{ secrets.HPCC_PORT }} | ||
DUMMY_HOST: ${{ secrets.DUMMY_HOST }} | ||
DUMMY_PORT: ${{ secrets.DUMMY_PORT }} | ||
jobs: | ||
poetry: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install Poetry and dependencies | ||
run: ./scripts/poetry-install.sh | ||
- name: Python tests | ||
run: $POETRY run pytest |
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
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,4 @@ | ||
#!/bin/bash | ||
python3 -m venv $POETRY_HOME | ||
$POETRY_HOME/bin/pip install poetry==1.2.0 | ||
$POETRY install |
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