-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (53 loc) · 1.48 KB
/
pull_requests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Pull Request Test, Build and Deploy
on:
pull_request:
branches:
- 'main'
jobs:
# TODO: Uncomment the following lines when we have
# - Formatting
# - Linting
# - Tests
#
# format-lint:
# name: "Format and Lint"
# uses: ./.github/workflows/_format-lint-action.yml
# with:
# python-version: '3.9'
# check-coverage:
# name: "Check Coverage"
# needs: [format-lint]
# secrets: inherit
# uses: ./.github/workflows/_check-coverage-action.yml
# permissions:
# pull-requests: write
# with:
# required-coverage: ${{ vars.REQUIRED_COVERAGE }}
# coverage-module: "geneweaver.api"
# test:
# name: "Run Tests"
# needs: [format-lint]
# strategy:
# matrix:
# os: [ubuntu-latest]
# python-version: ['3.10', '3.11']
# uses: ./.github/workflows/_run-tests-action.yml
# with:
# runner-os: ${{ matrix.os }}
# python-version: ${{ matrix.python-version }}
# required-coverage: ${{ vars.REQUIRED_COVERAGE }}
build:
name: "Build: Dev"
# TODO: Uncomment the following lines when we have the previous steps
# needs: [test, check-coverage]
uses: ./.github/workflows/_skaffold-build-k8s.yml
secrets: inherit
with:
default_image_repo: "us-east1-docker.pkg.dev/jax-cs-registry/docker-test/geneweaver"
deploy:
name: "Deploy: Dev"
needs: [build]
uses: ./.github/workflows/_skaffold-deploy-k8s.yml
secrets: inherit
with:
environment: "jax-cluster-dev-10--dev"