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

Passes PYTEST_ARGS to mockstack/pytest target #9

Merged
merged 2 commits into from
Mar 27, 2023
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
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.1
current_version = 1.1.0
commit = True
message = Bumps version to {new_version}
tag = False
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
default: true
required: false
type: boolean
mockstacktest-pytest-args:
description: Passes PYTEST_ARGS to mockstacktest
default: -v
required: false
type: string
secrets:
release-token:
description: Token with permissions to create GitHub Releases
Expand All @@ -22,6 +27,7 @@ jobs:
uses: ./.github/workflows/test.yml
with:
mockstacktest-enable: ${{ inputs.mockstacktest-enable }}
mockstacktest-pytest-args: ${{ inputs.mockstacktest-pytest-args }}

release:
needs:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
default: true
required: false
type: boolean
mockstacktest-pytest-args:
description: Passes PYTEST_ARGS to mockstacktest
default: -v
required: false
type: string

jobs:
mockstacktest:
Expand All @@ -23,7 +28,7 @@ jobs:
run: make mockstack/up

- name: Apply Terraform test configs in mock AWS stack
run: make mockstack/pytest
run: make mockstack/pytest PYTEST_ARGS="${{ inputs.mockstacktest-pytest-args }}"

- name: Cleanup the mock AWS stack
run: make mockstack/clean
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

### [1.1.0](https://github.com/plus3it/actions-workflows/releases/tag/1.1.0)

**Released**: 2023.03.27

**Summary**:

* Adds option to pass PYTEST_ARGS to mockstack/pytest target

### [1.0.1](https://github.com/plus3it/actions-workflows/releases/tag/1.0.1)

**Released**: 2023.02.06

**Summary**:

* Allows test job to be optional in release workflow
* Allows test job to be optional in release workflow

### [1.0.0](https://github.com/plus3it/actions-workflows/releases/tag/1.0.0)

Expand Down