start of workflow-refactors-2025-01-21-y9m254 πͺ - kamangir/bolt#746 #322
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: pytest | |
on: [push] | |
jobs: | |
log-commit-message: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Log commit message | |
run: | | |
echo "Commit message: '${{ github.event.head_commit.message }}'" | |
build: | |
runs-on: ubuntu-latest | |
if: "! contains(github.event.head_commit.message, 'no-workflow')" | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -e . | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ca-central-1 | |
- name: Run tests | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
ABCLI_AWS_RDS_HOST: ${{ secrets.ABCLI_AWS_RDS_HOST }} | |
ABCLI_AWS_RDS_PASSWORD: ${{ secrets.ABCLI_AWS_RDS_PASSWORD }} | |
BLUE_PLUGIN_SECRET: ${{ secrets.BLUE_PLUGIN_SECRET }} | |
DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }} | |
DATABRICKS_TOKEN: ${{ secrets.DATABRICKS_TOKEN }} | |
run: | | |
echo "AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID" | |
echo "AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY" | |
echo "ABCLI_AWS_RDS_HOST: $ABCLI_AWS_RDS_HOST" | |
echo "ABCLI_AWS_RDS_PASSWORD: $ABCLI_AWS_RDS_PASSWORD" | |
echo "BLUE_PLUGIN_SECRET: $BLUE_PLUGIN_SECRET" | |
echo "DATABRICKS_HOST: $DATABRICKS_HOST" | |
echo "DATABRICKS_TOKEN: $DATABRICKS_TOKEN" | |
pytest --verbose |