forked from HEPCloud/decisionengine
-
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.
migrate to setuptools (HEPCloud#264)
Also move flake8 to a github action RB: https://fermicloud140.fnal.gov/reviews/r/329/
- Loading branch information
Showing
146 changed files
with
388 additions
and
1,180 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ctions/unittest-in-sl7-docker/action.yaml → ...tions/pytest-in-sl7-container/action.yaml
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: 'Unit Tests' | ||
description: 'Run unit tests in preconfigured SL7 docker image' | ||
description: 'Run pytest in preconfigured SL7 container image' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' |
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,13 @@ | ||
#!/bin/bash -x | ||
GITHUB_WORKSPACE=${GITHUB_WORKSPACE:-`pwd`} | ||
export PATH=$PATH:/usr/pgsql-11/bin | ||
python3 -m pip install --upgrade pip --user | ||
python3 -m pip install --upgrade setuptools wheel setuptools-scm[toml] --user | ||
python3 -m pip install -r ${GITHUB_WORKSPACE}/requirements/requirements-runtime.txt --user | ||
python3 -m pip install -r ${GITHUB_WORKSPACE}/requirements/requirements-develop.txt --user | ||
python3 setup.py bdist_wheel | ||
# cannot use `tee` as it eats $? and we lose success/failure | ||
python3 -m pytest 2>&1 > pytest.log | ||
RC=$? | ||
cat pytest.log | ||
exit ${RC} |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: 'RPM build' | ||
description: 'Run rpm build in preconfigured SL7 container image' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' |
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,6 @@ | ||
#!/bin/bash -xe | ||
GITHUB_WORKSPACE=${GITHUB_WORKSPACE:-`pwd`} | ||
python3 -m pip install --upgrade pip --user | ||
python3 -m pip install --upgrade setuptools wheel setuptools-scm[toml] --user | ||
python3 -m pip install -r ${GITHUB_WORKSPACE}/requirements/requirements-develop.txt --user | ||
python3 setup.py bdist_rpm |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 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,32 @@ | ||
--- | ||
name: Test in EL7 container | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- '**' # matches every branch | ||
- '!gh-pages' # excludes gh-pages branch | ||
|
||
jobs: | ||
rpm_build_job: | ||
runs-on: ubuntu-latest | ||
name: A job to test the decision engine framework on EL7 | ||
|
||
steps: | ||
- name: checkout code tree | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run the tests in a container (SL7/HEPCloud-CI) | ||
uses: ./.github/actions/pytest-in-sl7-container | ||
|
||
- name: Archive logs | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-log | ||
path: pytest.log | ||
if-no-files-found: error |
Oops, something went wrong.