From cb76efcf870b6c8572aa79ebcacd2171017722b0 Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Fri, 17 Nov 2023 15:53:07 +0100 Subject: [PATCH] run the tests through --- .github/workflows/just-for-testing.yml | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/just-for-testing.yml diff --git a/.github/workflows/just-for-testing.yml b/.github/workflows/just-for-testing.yml new file mode 100644 index 00000000000..58c069ea9df --- /dev/null +++ b/.github/workflows/just-for-testing.yml @@ -0,0 +1,30 @@ +--- +# This is a basic workflow to help you get started with Actions +name: DB Migration Testing +on: + workflow_dispatch: + workflow_call: + push: + branches: [main] + paths-ignore: [docs/**, docker/**, '*', '!pyproject.toml', '**.md'] + pull_request: + types: [opened, synchronize, ready_for_review] + paths-ignore: [docs/**, docker/**, '*', '!pyproject.toml', '**.md'] +jobs: + db-migration-testing: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v2 + with: + python-version: '3.10' + - name: Setup environment + uses: ./.github/actions/setup_environment + with: + cache_version: ${{ secrets.GH_ACTIONS_CACHE_KEY }} + python-version: '3.10' + os: ubuntu-latest + - name: Test migrations across versions + run: bash scripts/test-migrations.sh