Skip to content

feat: add python 3.12 support #61

feat: add python 3.12 support

feat: add python 3.12 support #61

Workflow file for this run

name: Run Tests
on: # rebuild any PR changes
pull_request:
branches: [ master ]
jobs:
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-py312:
env:
TOXENV: py312
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.12'
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.12'
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.12'
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
pypi-build:
needs: [test-py38, test-py39, test-py312, test-docs, test-docker]
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.12'
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 install wheel
- run: pip freeze
- run: virtualenv --version
- run: bash build_or_deploy.sh build
dockerhub-build:
needs: [pypi-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: manheim/manheim-c7n-tools
- name: Build Docker image
uses: docker/build-push-action@v2
with:
context: .
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}