Skip to content

Commit

Permalink
build(build): specify virtual env ubuntu version (#7475)
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokamin authored Mar 11, 2021
1 parent 7d9734b commit f7d3e99
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/api-test-lint-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
lint:
name: 'opentrons package linting'
timeout-minutes: 10
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-node@v1'
Expand All @@ -55,7 +55,7 @@ jobs:
needs: [lint]
strategy:
matrix:
os: ['windows-latest', 'ubuntu-latest', 'macos-latest']
os: ['windows-latest', 'ubuntu-18.04', 'macos-latest']
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
deploy:
name: 'deploy opentrons package'
needs: [test]
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
if: github.event_name == 'push'
steps:
- uses: 'actions/checkout@v2'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/app-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
js-unit-test:
# unit tests for js frontend projects (e.g. not app-shell or discovery-client) do not need
# to run cross-platform
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
name: 'opentrons app frontend unit tests'
timeout-minutes: 30
steps:
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
# to run cross-platform just like builds, might as well do them in the same job
strategy:
matrix:
os: ['windows-latest', 'ubuntu-latest', 'macos-latest']
os: ['windows-latest', 'ubuntu-18.04', 'macos-latest']
name: 'opentrons app backend unit tests and build'
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
path: app-shell/dist/publish
deploy-app:
name: 'Deploy built app artifacts to S3'
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
needs: build-app-test-backend
if: github.event_name != 'pull_request'
steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/components-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
js-unit-test:
name: 'components unit tests'
timeout-minutes: 30
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-node@v1'
Expand All @@ -56,7 +56,7 @@ jobs:
yarn jest --coverage=true --ci=true components/
build-components:
name: 'build components artifact'
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
if: github.event_name != 'pull_request'
steps:
- uses: 'actions/checkout@v2'
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
path: components/dist
deploy-components:
name: 'deploy components artifact to S3'
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
needs: ["js-unit-test", "build-components"]
if: github.event_name != 'pull_request'
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defaults:
jobs:
build:
name: opentrons documentation build
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-node@v1'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/js-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ env:
jobs:
checks:
name: 'js checks'
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
timeout-minutes: 20
steps:
- uses: 'actions/checkout@v2'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labware-library-e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
timeout-minutes: 40
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
os: ['ubuntu-18.04', 'macos-latest']
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ll-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
js-unit-test:
name: 'labware library unit tests'
timeout-minutes: 20
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-node@v1'
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
os: ['ubuntu-18.04', 'macos-latest']
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
Expand All @@ -88,7 +88,7 @@ jobs:
run: make -C labware-library test-e2e
build-ll:
name: 'build labware library artifact'
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
if: github.event_name != 'pull_request'
steps:
- uses: 'actions/checkout@v2'
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
path: labware-library/dist
deploy-ll:
name: 'deploy LL artifact to S3'
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
needs: ["js-unit-test", "e2e-test", "build-ll"]
if: github.event_name != 'pull_request'
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notify-server-lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
lint-test:
name: 'notify server package linting and tests'
timeout-minutes: 20
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-node@v1'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pd-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ env:
jobs:
js-unit-test:
name: 'protocol designer unit tests'
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
timeout-minutes: 30
steps:
- uses: 'actions/checkout@v2'
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
os: ['ubuntu-18.04', 'macos-latest']
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
Expand All @@ -88,7 +88,7 @@ jobs:
run: make -C protocol-designer test-e2e
build-pd:
name: 'build protocol designer artifact'
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
if: github.event_name != 'pull_request'
steps:
- uses: 'actions/checkout@v2'
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
path: protocol-designer/dist
deploy-pd:
name: 'deploy PD artifact to S3'
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
needs: ["js-unit-test", "build-pd"]
if: github.event_name != 'pull_request'
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/robot-server-lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
lint-test:
name: 'robot server package linting and tests'
timeout-minutes: 20
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-node@v1'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/shared-data-test-lint-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
python-lint:
name: 'shared-data package python lint'
timeout-minutes: 10
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-node@v1'
Expand All @@ -51,7 +51,7 @@ jobs:
needs: [python-lint]
strategy:
matrix:
os: ['windows-latest', 'ubuntu-latest', 'macos-latest']
os: ['windows-latest', 'ubuntu-18.04', 'macos-latest']
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
Expand All @@ -75,7 +75,7 @@ jobs:
python-deploy:
name: 'shared-data package deploy'
needs: [python-test]
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
if: github.event_name == 'push'
steps:
- uses: 'actions/checkout@v2'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-server-lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
lint:
name: 'update server linting'
timeout-minutes: 10
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-node@v1'
Expand All @@ -53,7 +53,7 @@ jobs:
name: 'update server package tests'
timeout-minutes: 10
needs: [lint]
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-18.04'
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-node@v1'
Expand Down
3 changes: 3 additions & 0 deletions app-shell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ dist-macos-latest: dist-osx
.PHONY: dist-ubuntu-latest
dist-ubuntu-latest: dist-linux

.PHONY: dist-ubuntu-18.04
dist-ubuntu-latest: dist-linux

.PHONY: dist-windows-latest
dist-windows-latest: dist-win

Expand Down

0 comments on commit f7d3e99

Please sign in to comment.