Skip to content

Commit

Permalink
Committing new Github Actions :)
Browse files Browse the repository at this point in the history
  • Loading branch information
CCP-Zeulix committed Apr 11, 2024
1 parent 65011e0 commit c6c1703
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
python --version
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel twine
# - name: Run Unit Tests
# run: |
# python -m unittest discover -v -f ./tests
- name: Build and Package
run: |
python setup.py sdist bdist_wheel
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Run Unit Tests

on: [push, pull_request]

jobs:
unit-tests:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade requirements.txt
- name: Run tests
run: |
python -m unittest discover -v -f ./tests/offline
integration-tests:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]

services:
localstack:
image: localstack/localstack
ports:
- 4566:4566
env:
SERVICES: ssm
DEFAULT_REGION: eu-west-1

env:
FIDELIUS_AWS_KEY_ARN: arn:aws:kms:eu-west-1:123456789012:alias/fidelius-key
FIDELIUS_AWS_REGION_NAME: eu-west-1
FIDELIUS_AWS_ENDPOINT_URL: http://localhost:4566
FIDELIUS_AWS_ACCESS_KEY_ID: somemadeupstuff
FIDELIUS_AWS_SECRET_ACCESS_KEY: notarealkey

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade requirements.txt
- name: Wait for LocalStack
run: |
until curl --fail http://localhost:4566/health; do sleep 5; done
- name: Run tests
run: |
python -m unittest discover -v -f ./tests/localstack

0 comments on commit c6c1703

Please sign in to comment.