Snowflake shares #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: metadata PR | |
on: | |
pull_request: | |
paths: | |
- "metadata/**" | |
- "common/**" | |
- "requirements*txt" | |
jobs: | |
test-unit-python: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: ["3.7.x"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Setup python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.FOODTRUCK_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.FOODTRUCK_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.FOODTRUCK_AWS_REGION }} | |
- name: Set up pip to use AWS CodeArtifact | |
run: | | |
# Get authorization token and configure pip | |
aws codeartifact login --tool pip --repository foodtruck.python.artifact.repository --domain foodtruck-codeartifact-domain --domain-owner 812753953378) | |
- name: Install dependencies | |
run: make install_deps && pip3 uninstall -y amundsen-common && pip3 install -e ../common | |
working-directory: ./metadata | |
- name: Run python unit tests | |
run: make test | |
working-directory: ./metadata | |
- name: Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
directory: ./metadata |