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

Pytest plugin fork #13

Merged
merged 8 commits into from
Jan 13, 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
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
on:
schedule:
- cron: '0 19 * * 6'
workflow_dispatch:
inputs:
services:
Expand All @@ -10,9 +12,10 @@ on:
type: string
default: 'localstack/localstack:latest'
description: localstack docker image name to test against
push:
branches:
- pytest-plugin
# disabled pipeline for push events, as we want to run the pipeline only on a schedule or manually
# push:
# branches:
# - pytest-plugin-fork

name: Terraform Tests
jobs:
Expand Down Expand Up @@ -45,12 +48,15 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: '1.18.x'
cache: true
cache-dependency-path: terraform-provider-aws/go.sum

- name: Set up Python 3.10.5
uses: actions/setup-python@v4
with:
python-version: '3.10.5'
cache: 'pip'

- name: Install system dependencies
run: |
Expand All @@ -72,7 +78,6 @@ jobs:

- name: Run ${{ matrix.service }} Tests
run: |
echo "::remove-matcher owner=python::"
pytest --junitxml=target/reports/pytest.xml terraform-provider-aws/internal/service/${{ matrix.service }} -s -v --ls-start --ls-image ${{ github.event.inputs.localstack-image || 'localstack/localstack:latest' }}

- name: Publish ${{ matrix.service }} Test Results
Expand Down
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def runtest(self):
'AWS_DEFAULT_REGION': 'us-west-2',
'AWS_ALTERNATE_ACCESS_KEY_ID': 'test',
'AWS_ALTERNATE_SECRET_ACCESS_KEY': 'test',
'AWS_ALTERNATE_SECRET_ACCESS_KEY': 'test',
'AWS_ALTERNATE_REGION': 'us-east-2',
'AWS_THIRD_REGION': 'eu-west-1',
})
Expand Down
9 changes: 4 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
click
pytest
docker
requests
pytest-xdist
click==8.1.3
pytest==7.2.0
docker==6.0.1
requests==2.28.2