Deploy dagster and parse #33
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: build-dags | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
check_and_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- uses: abatilo/actions-poetry@v2 | |
- name: run mypy and pytest | |
working-directory: dags | |
run: | | |
poetry export --with=dev --without-hashes --format=requirements.txt > requirements.txt | |
poetry run pip install -r requirements.txt | |
poetry run mypy . | |
# poetry run pytest | |
env: | |
RAW_BUCKET: gs://this-does-not-exist-raw | |
PARSED_BUCKET: gs://this-does-not-exist-parsed | |
- uses: docker/build-push-action@v4 | |
with: | |
context: dags | |
push: false | |
tags: 'ghcr.io/jarvusinnovations/transit-data-analytics-demo/dags:test' |