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

Github Actions for Test and Deploy / Update c7n and c7n_mailer versions #65

Merged
merged 31 commits into from
Jan 24, 2022
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b652568
add initial github actions code
jleopold28 Jan 20, 2022
b4c9a5c
install virtualenv
jleopold28 Jan 20, 2022
e9222bf
pin mistune to 0.8.4
jleopold28 Jan 20, 2022
07668d9
setup docker on github runners
jleopold28 Jan 20, 2022
723cd0b
remove tty
jleopold28 Jan 20, 2022
aacb3c8
remove travis.yml
jleopold28 Jan 20, 2022
425b8d0
add release workflow
jleopold28 Jan 20, 2022
e443f96
Bump versions of c7n and c7n_mailer
jleopold28 Jan 20, 2022
91e489a
Remove constraints on docutils
jleopold28 Jan 20, 2022
8c04c9b
revert c7n version bump
jleopold28 Jan 20, 2022
c4ffc30
update c7n and mailer version in requirements.txt
jleopold28 Jan 20, 2022
52ec473
update dependencies in setup.py
jleopold28 Jan 20, 2022
08888cb
import c7n filters
jleopold28 Jan 21, 2022
cf9f7d8
ignore unused import error
jleopold28 Jan 21, 2022
3b8233c
convert to tool:pytest
jleopold28 Jan 21, 2022
5af0b1b
update build_or_deploy.sh script with GITHUB ENV vars
jleopold28 Jan 21, 2022
dc77d69
testing build command in pr workflow
jleopold28 Jan 21, 2022
8dd29a7
update build workflow
jleopold28 Jan 21, 2022
ce23ae6
add pip install wheel
jleopold28 Jan 21, 2022
868fd9c
add wheel to release workflow
jleopold28 Jan 21, 2022
9befcb6
add debug
jleopold28 Jan 21, 2022
bbbf51d
print env vars
jleopold28 Jan 21, 2022
6878047
add debug
jleopold28 Jan 21, 2022
77fe1d4
export twine vars
jleopold28 Jan 21, 2022
b5559d2
remove deploy step from pr workflow
jleopold28 Jan 21, 2022
35ac1fd
remove references to TRavisCI
jleopold28 Jan 24, 2022
a01e6e0
remove extra references to Travis
jleopold28 Jan 24, 2022
7cb1468
add dockerhub push action
jleopold28 Jan 24, 2022
8c57761
add docker build and push step
jleopold28 Jan 24, 2022
d6b0e4f
change PR to docker build step only
jleopold28 Jan 24, 2022
8dad57f
add pypi-build step
jleopold28 Jan 24, 2022
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
Prev Previous commit
Next Next commit
add release workflow
jleopold28 committed Jan 20, 2022
commit 425b8d0a15811df7eb82e089e963f8e9ba3d93ce
121 changes: 121 additions & 0 deletions .github/workflows/release.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Run Tests and Release

on: # Build and release on push to master
push:
branches: [ master ]
jobs:
test-py37:
env:
TOXENV: py37
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.7'
architecture: 'x64'
- run: pip install virtualenv
- run: virtualenv --version
- run: git config --global user.email "man-releaseengineering@manheim.com"
- run: git config --global user.name "Manheim RE"
- run: pip install tox
- run: pip install codecov
- run: pip freeze
- run: virtualenv --version
- run: tox -r
- run: codecov
test-py38:
env:
TOXENV: py38
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- run: pip install virtualenv
- run: virtualenv --version
- run: git config --global user.email "man-releaseengineering@manheim.com"
- run: git config --global user.name "Manheim RE"
- run: pip install tox
- run: pip install codecov
- run: pip freeze
- run: virtualenv --version
- run: tox -r
- run: codecov
test-py39:
env:
TOXENV: py39
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- run: pip install virtualenv
- run: virtualenv --version
- run: git config --global user.email "man-releaseengineering@manheim.com"
- run: git config --global user.name "Manheim RE"
- run: pip install tox
- run: pip install codecov
- run: pip freeze
- run: virtualenv --version
- run: tox -r
- run: codecov
test-docs:
env:
TOXENV: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- run: pip install virtualenv
- run: virtualenv --version
- run: git config --global user.email "man-releaseengineering@manheim.com"
- run: git config --global user.name "Manheim RE"
- run: pip install tox
- run: pip install codecov
- run: pip freeze
- run: virtualenv --version
- run: tox -r
- run: codecov
test-docker:
env:
TOXENV: docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- run: pip install virtualenv
- run: virtualenv --version
- run: git config --global user.email "man-releaseengineering@manheim.com"
- run: git config --global user.name "Manheim RE"
- run: pip install tox
- run: pip install codecov
- run: pip freeze
- run: virtualenv --version
- run: tox -r
- run: codecov
deploy:
needs: [test-py37, test-py38, test-py39, test-docs, test-docker]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- run: bash build_or_deploy.sh build
- run: bash build_or_deploy.sh push