Bump black from 19.10b0 to 24.3.0 #67
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: CI | |
on: | |
push: | |
release: | |
types: [ published ] | |
jobs: | |
checks: | |
name: "Run Tests" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: google-github-actions/setup-gcloud@v0 | |
with: | |
service_account_key: ${{ secrets.GCP_SA_KEY }} | |
export_default_credentials: true | |
- run: | | |
docker-compose run \ | |
-v $GOOGLE_APPLICATION_CREDENTIALS:'/gcloud_auth' \ | |
-e GOOGLE_APPLICATION_CREDENTIALS='/gcloud_auth' \ | |
gtfs-rt-validator pytest tests | |
build_push: | |
name: Package docker image | |
runs-on: ubuntu-18.04 | |
needs: checks | |
if: github.event_name == 'release' && github.event.action == 'published' | |
steps: | |
#- uses: actions/checkout@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
tags: ghcr.io/${{github.repository}}:${{ github.event.release.tag_name }} |