chore: Remove old execution and encoding files (#221)
They are unused now. See https://github.com/propeller-heads/tycho-execution for the new workflow
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
name: Publish Propeller Swap Encoders Python Packages to AWS CodeArtifact
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- prereleased
|
||||
- released
|
||||
workflow_dispatch: { }
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
publish_propeller_swap_encoders:
|
||||
uses: propeller-heads/ci-cd-templates/.github/workflows/release-python-package.yaml@main
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
with:
|
||||
package_root: "propeller-swap-encoders"
|
||||
secrets:
|
||||
app_id: ${{ secrets.APP_ID }}
|
||||
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||
role_to_assume: ${{ secrets.ROLE_TO_ASSUME }}
|
||||
aws_region: ${{ secrets.AWS_REGION }}
|
||||
domain_owner: ${{ secrets.DOMAIN_OWNER }}
|
||||
63
.github/workflows/python-tests.yaml
vendored
63
.github/workflows/python-tests.yaml
vendored
@@ -1,63 +0,0 @@
|
||||
name: Test code using pytest
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
runs_on:
|
||||
required: false
|
||||
type: string
|
||||
default: ubuntu-latest
|
||||
timeout_minutes:
|
||||
required: false
|
||||
type: number
|
||||
default: 15
|
||||
secrets:
|
||||
role-to-assume:
|
||||
required: true
|
||||
aws-region:
|
||||
required: true
|
||||
domain-owner:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
test-python:
|
||||
runs-on: "${{ inputs.runs_on }}"
|
||||
timeout-minutes: "${{ inputs.timeout_minutes }}"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.9"
|
||||
|
||||
- name: Cache Env
|
||||
uses: actions/cache@v3
|
||||
id: env-cache
|
||||
with:
|
||||
path: ${{ env.pythonLocation }}
|
||||
key: ${{ env.pythonLocation }}-${{ hashFiles('./propeller-swap-encoders/requirements.txt') }}
|
||||
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v4.0.1
|
||||
with:
|
||||
role-to-assume: ${{ secrets.role-to-assume }}
|
||||
audience: sts.amazonaws.com
|
||||
aws-region: ${{ secrets.aws-region }}
|
||||
|
||||
- name: Install Dependencies
|
||||
if: ${{ steps.env-cache.outputs.cache-hit != 'true' }}
|
||||
run: |
|
||||
aws codeartifact login --tool pip --domain propeller --domain-owner ${{secrets.domain-owner}} --repository protosim
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r propeller-swap-encoders/requirements.txt --no-cache
|
||||
shell: bash
|
||||
|
||||
- name: Test with pytest
|
||||
id: tests
|
||||
run: |
|
||||
export PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE/propeller-swap-encoders
|
||||
pytest --disable-warnings ./propeller-swap-encoders
|
||||
40
.github/workflows/swap-encoders.yaml
vendored
40
.github/workflows/swap-encoders.yaml
vendored
@@ -1,40 +0,0 @@
|
||||
name: Swap encoders CI
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
|
||||
env:
|
||||
PYTEST_ADDOPTS: "--color=yes"
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
uses: propeller-heads/tycho-protocol-sdk/.github/workflows/python-tests.yaml@main
|
||||
secrets:
|
||||
role-to-assume: ${{ secrets.ROLE_TO_ASSUME }}
|
||||
aws-region: ${{ secrets.AWS_REGION }}
|
||||
domain-owner: ${{ secrets.DOMAIN_OWNER }}
|
||||
|
||||
formatting:
|
||||
name: Formatting
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Check out Repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Env
|
||||
uses: ./.github/actions/setup_env
|
||||
with:
|
||||
role-to-assume: ${{ secrets.ROLE_TO_ASSUME }}
|
||||
aws-region: ${{ secrets.AWS_REGION }}
|
||||
domain-owner: ${{ secrets.DOMAIN_OWNER }}
|
||||
|
||||
- name: Black Formatting
|
||||
run: |
|
||||
black ./propeller-swap-encoders --check --skip-magic-trailing-comma
|
||||
Reference in New Issue
Block a user