diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index c4fb57a..d7b4820 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,47 +1,24 @@ -name: Test +name: Main on: push: branches: - "main" - "v*" - pull_request: - paths-ignore: - - "release-index.yaml" - - "replica-releases/**" - - "node-labels/**" + pull_request: {} concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: - bazel: - runs-on: - labels: dre-runner-custom + ci: + runs-on: ubuntu-latest # This image is based on ubuntu:20.04 - container: ghcr.io/dfinity/dre/actions-runner:0.2.1 steps: - uses: actions/checkout@v4 - with: - fetch-depth: 2 ######################################## - # Set up up runner - ######################################## - - name: "Set up runner" - uses: ./.github/workflows/manage-runner-pre - - ######################################## - # Build and test + # Test ######################################## - name: "Test" uses: ./.github/workflows/test - - ######################################## - # Clean up runner - ######################################## - - uses: ./.github/workflows/manage-runner-post - name: "Tear down runner" - if: ${{ !startsWith(runner.name, 'dre-runner-custom') }} - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test/action.yaml b/.github/workflows/test/action.yaml index e9758ca..f28ac1e 100644 --- a/.github/workflows/test/action.yaml +++ b/.github/workflows/test/action.yaml @@ -10,7 +10,7 @@ runs: make ruff shell: bash - - name: "Mypy" + - name: "MyPy" id: mypy run: | make mypy diff --git a/bin/airflow b/bin/airflow index 539cba4..c368824 100755 --- a/bin/airflow +++ b/bin/airflow @@ -20,7 +20,8 @@ then pushd "$AIRFLOW_HOME" ln -sfT ../dags dags ln -sfT ../plugins plugins - sed -i 's/allowed_deserialization_classes.*/allowed_deserialization_classes = (airflow|dfinity)[.].*/' airflow.cfg + sed -i 's/allowed_deserialization_classes_regex.*/allowed_deserialization_classes_regex = (airflow|dfinity)[.].*/' airflow.cfg + sed -i 's/^allowed_deserialization_classes /# allowed_deserialization_classes.../' airflow.cfg sed -i 's/reload_on_plugin_change.*/reload_on_plugin_change = True/' airflow.cfg sed -i 's/load_examples.*/load_examples = False/' airflow.cfg popd