Skip to content

Commit

Permalink
change python target ver, adjust gha names
Browse files Browse the repository at this point in the history
  • Loading branch information
thadk committed Nov 22, 2023
1 parent a040a8f commit 2116a50
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 56 deletions.
105 changes: 53 additions & 52 deletions .github/workflows/heat-stack.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🚀 Test and eventually deploy Heat-Stack combined app
name: whole heat-stack
on:
push:
branches:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-rules-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2116a50

Please sign in to comment.