Nonrevenue trips only need to be handled in pre Dec 2023 data (#34) #27
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: deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
env: | |
AWS_PROFILE: transitmatters | |
AWS_DEFAULT_REGION: us-east-1 | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
DD_API_KEY: ${{ secrets.DD_API_KEY }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Generate AWS profile | |
run: | | |
mkdir ~/.aws | |
cat >> ~/.aws/credentials << EOF | |
[$AWS_PROFILE] | |
aws_access_key_id = $AWS_ACCESS_KEY_ID | |
aws_secret_access_key = $AWS_SECRET_ACCESS_KEY | |
EOF | |
- name: Run deploy shell script | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
poetry install | |
bash devops/deploy.sh |