Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from Golang to Python #43

Merged
merged 15 commits into from
Apr 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
- name: Set up Go 1.16.2
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.16.2
id: go
- uses: actions/setup-python@v2
with:
python-version: '3.8.5'
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Lint, test and build
Expand All @@ -23,8 +26,13 @@ jobs:
GO111MODULE=off go get -u golang.org/x/lint/golint
# Lint and test
go mod vendor
pip install -r requirements-dev.txt
pip install -r algorithms/requirements.txt
make lint
make unittest
make beautify
# Exit if after beautification there are any code differences
git diff --exit-code
make test
# Build
if [ ${{ github.event_name }} == "release" ]; then
# github.ref is in the form refs/tags/VERSION, so apply regex to just get version
Expand All @@ -37,9 +45,16 @@ jobs:
if: github.repository == 'jthomperoo/predictive-horizontal-pod-autoscaler'
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./unit_cover.out
file: ./application_coverage.out
flags: unittests
name: application-unittests
- uses: codecov/[email protected]
if: github.repository == 'jthomperoo/predictive-horizontal-pod-autoscaler'
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./algorithm_coverage.out
flags: unittests
name: predictive-horizontal-pod-autoscaler-unittests
name: algorithm-unittests
- name: Deploy
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/vendor/
/dist/
*.out
*.out
__pycache__
.algorithm_coverage
.coverage
Loading