Skip to content
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
25 changes: 0 additions & 25 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,6 @@ on:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install black mypy types-requests types-boto3

- name: Run mypy
run: |
mypy ./publish_artifacts.py

- name: Run black
run: |
black --check --diff ./publish_artifacts.py


unit-test:
runs-on: ubuntu-latest
steps:
Expand Down
35 changes: 17 additions & 18 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,26 @@ inputs:
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.13'

- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('${{ github.action_path }}/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Ensure AWS CLI is available
shell: bash
run: |
if ! command -v aws &> /dev/null; then
echo "Installing AWS CLI..."
apt-get update && apt-get install -y awscli
else
echo "AWS CLI is already available."
fi

- name: Install dependencies
- name: Check AWS credentials
shell: bash
run: pip install -r ${{ github.action_path }}/requirements.txt
run: |
if ! aws sts get-caller-identity &> /dev/null; then
echo "AWS credentials are missing or invalid."
exit 1
fi

- name: Upload artifacts
shell: bash
run: |
python ${{ github.action_path }}/publish_artifacts.py \
--path "${{ inputs.path }}" \
--destination "${{ inputs.destination }}" \
--s3-bucket "${{ inputs.s3_bucket }}"
aws s3 cp "${{ inputs.path }}" "s3://${{ inputs.s3_bucket }}/${{ inputs.destination }}" --recursive

44 changes: 0 additions & 44 deletions publish_artifacts.py

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.