From 2116a50fdbae7c997cec9d41e97c9f51cf96610b Mon Sep 17 00:00:00 2001 From: Thad Kerosky Date: Wed, 22 Nov 2023 12:01:31 -0500 Subject: [PATCH] change python target ver, adjust gha names --- .github/workflows/heat-stack.yml | 105 ++++++++++++------------ .github/workflows/test-rules-engine.yml | 8 +- 2 files changed, 57 insertions(+), 56 deletions(-) diff --git a/.github/workflows/heat-stack.yml b/.github/workflows/heat-stack.yml index 067965c4..140bfd2e 100644 --- a/.github/workflows/heat-stack.yml +++ b/.github/workflows/heat-stack.yml @@ -1,4 +1,4 @@ -name: 🚀 Test and eventually deploy Heat-Stack combined app +name: whole heat-stack on: push: branches: @@ -72,7 +72,7 @@ jobs: run: npm run typecheck --if-present vitest: - name: ⚡ Vitest app/utils/pyodide.test.ts + name: ⚡ Vitest pyodide.test.ts runs-on: ubuntu-latest steps: - name: ⬇️ Checkout repo @@ -97,62 +97,63 @@ jobs: - name: ⚡ Run vitest run: npm run test app/utils/pyodide.test.ts -- --coverage - playwright: - name: 🎭 Playwright - runs-on: ubuntu-latest - timeout-minutes: 60 - steps: - - name: ⬇️ Checkout repo - uses: actions/checkout@v3 + # playwright tests work great but slight jank/inconsistency passing, and not used yet, so disabling for now + # playwright: + # name: 🎭 Playwright + # runs-on: ubuntu-latest + # timeout-minutes: 60 + # steps: + # - name: ⬇️ Checkout repo + # uses: actions/checkout@v3 - - name: 🏄 Copy test env vars - run: cp .env.example .env + # - name: 🏄 Copy test env vars + # run: cp .env.example .env - - name: ⎔ Setup node - uses: actions/setup-node@v3 - with: - node-version: 18 + # - name: ⎔ Setup node + # uses: actions/setup-node@v3 + # with: + # node-version: 18 - - name: 📥 Download deps - uses: bahmutov/npm-install@v1 - with: - working-directory: ${{ env.working-directory }} + # - name: 📥 Download deps + # uses: bahmutov/npm-install@v1 + # with: + # working-directory: ${{ env.working-directory }} - - name: 📥 Install Playwright Browsers - run: npm run test:e2e:install + # - name: 📥 Install Playwright Browsers + # run: npm run test:e2e:install - - name: 🛠 Setup Database - run: npx prisma migrate deploy + # - name: 🛠 Setup Database + # run: npx prisma migrate deploy - - name: 🏦 Cache Database - id: db-cache - uses: actions/cache@v3 - with: - path: prisma/data.db - key: - db-cache-schema_${{ hashFiles('./prisma/schema.prisma') - }}-migrations_${{ hashFiles('./prisma/migrations/*/migration.sql') - }} - - - name: 🌱 Seed Database - if: steps.db-cache.outputs.cache-hit != 'true' - run: npx prisma db seed - env: - MINIMAL_SEED: true - - - name: 🏗 Build - run: npm run build - - - name: 🎭 Playwright tests - run: npx playwright test - - - name: 📊 Upload report - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 + # - name: 🏦 Cache Database + # id: db-cache + # uses: actions/cache@v3 + # with: + # path: prisma/data.db + # key: + # db-cache-schema_${{ hashFiles('./prisma/schema.prisma') + # }}-migrations_${{ hashFiles('./prisma/migrations/*/migration.sql') + # }} + + # - name: 🌱 Seed Database + # if: steps.db-cache.outputs.cache-hit != 'true' + # run: npx prisma db seed + # env: + # MINIMAL_SEED: true + + # - name: 🏗 Build + # run: npm run build + + # - name: 🎭 Playwright tests + # run: npx playwright test + + # - name: 📊 Upload report + # uses: actions/upload-artifact@v3 + # if: always() + # with: + # name: playwright-report + # path: playwright-report/ + # retention-days: 30 # deploy: # name: 🚀 Deploy diff --git a/.github/workflows/test-rules-engine.yml b/.github/workflows/test-rules-engine.yml index aa53d26a..fc069fcf 100644 --- a/.github/workflows/test-rules-engine.yml +++ b/.github/workflows/test-rules-engine.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10"] + python-version: ["3.11.3"] # Check python version at https://pyodide.org/en/stable/project/changelog.html steps: - uses: actions/checkout@v3 @@ -29,7 +29,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10"] + python-version: ["3.11.3"] steps: - uses: actions/checkout@v3 @@ -44,7 +44,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10"] + python-version: ["3.11.3"] steps: - uses: actions/checkout@v3 @@ -59,7 +59,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10"] + python-version: ["3.11.3"] steps: - uses: actions/checkout@v3