Skip to content

Commit

Permalink
Fix pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
DFINITYManu committed Jun 25, 2024
1 parent 3eceb35 commit ce8d930
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 30 deletions.
33 changes: 5 additions & 28 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
make ruff
shell: bash

- name: "Mypy"
- name: "MyPy"
id: mypy
run: |
make mypy
Expand Down
3 changes: 2 additions & 1 deletion bin/airflow
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce8d930

Please sign in to comment.