Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to cc2 #3

Merged
merged 2 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
coverage run -m pytest tests
coverage xml -o coverage/python.xml
- name: Report python coverage
uses: orgoro/coverage@v3
with:
coverageFile: coverage/python.xml
token: ${{ secrets.GITHUB_TOKEN }}
# - name: Test with pytest
# run: |
# coverage run -m pytest tests
# coverage xml -o coverage/python.xml
# - name: Report python coverage
# uses: orgoro/coverage@v3
# with:
# coverageFile: coverage/python.xml
# token: ${{ secrets.GITHUB_TOKEN }}
# The next few steps only apply if you have javascript files
# - name: Setup node
# uses: actions/setup-node@v3
Expand Down
3 changes: 2 additions & 1 deletion cset_openalex_augmentation_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
)
from dataloader.scripts.populate_documentation import update_table_descriptions

args = get_default_args()
args = get_default_args(pocs=["Jennifer"])
args["retries"] = 1


Expand Down Expand Up @@ -143,6 +143,7 @@
source_project_dataset_table=f"{staging_dataset}.metadata",
destination_cloud_storage_uris=f"gs://{DATA_BUCKET}/{tmp_dir}/{production_dataset}/data*",
export_format="NEWLINE_DELIMITED_JSON",
force_rerun=True,
)

gce_instance_start = ComputeEngineStartInstanceOperator(
Expand Down
10 changes: 5 additions & 5 deletions push_to_airflow.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
gsutil cp cset_openalex_augmentation_dag.py gs://us-east1-production2023-cc1-01d75926-bucket/dags/
gsutil cp cset_openalex_augmentation_dag.py gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/

gsutil rm -r gs://us-east1-production2023-cc1-01d75926-bucket/dags/schemas/cset_openalex/*
gsutil rm -r gs://us-east1-production2023-cc1-01d75926-bucket/dags/sql/cset_openalex/*
gsutil rm -r gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/schemas/cset_openalex/*
gsutil rm -r gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/sql/cset_openalex/*

gsutil cp schemas/* gs://us-east1-production2023-cc1-01d75926-bucket/dags/schemas/cset_openalex/
gsutil cp sql/* gs://us-east1-production2023-cc1-01d75926-bucket/dags/sql/cset_openalex/
gsutil cp schemas/* gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/schemas/cset_openalex/
gsutil cp sql/* gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/sql/cset_openalex/
gsutil cp scripts/upload.py gs://airflow-data-exchange/cset_openalex/
6 changes: 0 additions & 6 deletions tests/test_sample.py

This file was deleted.

Loading