-
Notifications
You must be signed in to change notification settings - Fork 88
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 #1099 from jettero/gh-ci
we retired the open source jenkins
- Loading branch information
Showing
6 changed files
with
1,271 additions
and
1,007 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,27 @@ | ||
name: pre-commit | ||
|
||
on: [ pull_request ] | ||
|
||
jobs: | ||
'pre-commit': | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
# note: we use depth:0 so we can use | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pre-commit | ||
pre-commit run --files .pre-commit-config.yaml | ||
- name: analyze code with pre-commit | ||
run: 'pre-commit run --from-ref "origin/${{ github.base_ref }}" --to-ref HEAD' |
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: pytest | ||
|
||
on: [ pull_request ] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
pytest: | ||
runs-on: ubuntu-latest | ||
container: jettero/kersplat:1.0.21 | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: install dependencies | ||
run: | | ||
source /etc/profile.d/kersplat.sh | ||
which python | ||
which pip | ||
python --version | ||
pip --version | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade pytest | ||
bash mk-requires.sh | ||
python -m pip install -r requirements.txt | ||
- name: run pytest | ||
run: | | ||
source /etc/profile.d/kersplat.sh | ||
python -m pytest tests |
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
Oops, something went wrong.