Skip to content

Commit

Permalink
update docs and comment out integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zaro0508 committed Jan 15, 2024
1 parent 5aa6f5c commit 44e949d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 34 deletions.
68 changes: 36 additions & 32 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,37 +79,41 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
integration-tests:
needs:
- unit-tests
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install --no-interaction --all-extras
# Update poetry for https://github.com/python-poetry/poetry/issues/7184
- name: update poetry
run: poetry self update --no-ansi
- name: Setup Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'poetry'
- name: Assume AWS role
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.AWS_ROLE }}
role-session-name: GHA-${{ github.repository_owner }}-${{ github.event.repository.name }}-${{ github.run_id }}
role-duration-seconds: ${{ env.AWS_ROLE_DURATION }}
- name: run tests
run: poetry run behave integration-tests/features --junit --junit-directory build/behave

# temporarily comment out to get GH action into place. Will fix tests on a follow on PR.
# https://github.com/Sceptre/sceptre/pull/1412#discussion_r1452566731
# integration-tests:
# needs:
# - unit-tests
# if: ${{ github.event_name != 'pull_request' }}
# runs-on: ubuntu-latest
# permissions:
# id-token: write
# steps:
# - uses: actions/checkout@v4
# - name: Install Poetry
# uses: snok/install-poetry@v1
# - name: Install dependencies
# run: poetry install --no-interaction --all-extras
# # Update poetry for https://github.com/python-poetry/poetry/issues/7184
# - name: update poetry
# run: poetry self update --no-ansi
# - name: Setup Python
# id: setup-python
# uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# cache: 'poetry'
# - name: Assume AWS role
# uses: aws-actions/configure-aws-credentials@v4
# with:
# aws-region: ${{ env.AWS_REGION }}
# role-to-assume: ${{ env.AWS_ROLE }}
# role-session-name: GHA-${{ github.repository_owner }}-${{ github.event.repository.name }}-${{ github.run_id }}
# role-duration-seconds: ${{ env.AWS_ROLE_DURATION }}
# - name: run tests
# run: poetry run behave integration-tests/features --junit --junit-directory build/behave

docker-build-push:
needs:
- docker-build
Expand Down Expand Up @@ -139,7 +143,7 @@ jobs:
- documentation
- unit-tests
- docker-build-push
- integration-tests
# - integration-tests
if: ${{ github.ref_type == 'tag' }}
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Sceptre

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/Sceptre/sceptre/main.yaml)](https://github.com/Sceptre/sceptre/actions)
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/Sceptre/sceptre/main.yaml)](https://github.com/Sceptre/sceptre/actions/workflows/main.yaml)
[![Docker Image Version (latest semver)](https://img.shields.io/docker/v/sceptreorg/sceptre?logo=docker&sort=semver)](https://hub.docker.com/r/sceptreorg/sceptre)
[![PyPI](https://img.shields.io/pypi/v/sceptre?logo=pypi)](https://pypi.org/project/sceptre/)
[![PyPI - Status](https://img.shields.io/pypi/status/sceptre?logo=pypi)](https://pypi.org/project/sceptre/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sceptre?logo=pypi)](https://pypi.org/project/sceptre/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/sceptre?logo=pypi)](https://pypi.org/project/sceptre/)
[![License](https://img.shields.io/pypi/l/sceptre?logo=apache)](https://github.com/Sceptre/sceptre/blob/main/LICENSE)
[![License](https://img.shields.io/pypi/l/sceptre?logo=apache)](https://github.com/Sceptre/sceptre/blob/master/LICENSE)

## About

Expand Down

0 comments on commit 44e949d

Please sign in to comment.