|
1 | | -version: 2 |
| 1 | +version: 2.1 |
| 2 | + |
| 3 | +orbs: |
| 4 | + browser-tools: circleci/[email protected] |
2 | 5 |
|
3 | 6 | jobs: |
4 | | - python-3.6: &test-template |
| 7 | + python-3-8: &test-template |
5 | 8 | docker: |
6 | | - - image: circleci/python:3.6-stretch-node-browsers |
| 9 | + - image: cimg/python:3.8.20-browsers |
7 | 10 | auth: |
8 | 11 | username: dashautomation |
9 | 12 | password: $DASH_PAT_DOCKERHUB |
|
14 | 17 | steps: |
15 | 18 | - checkout |
16 | 19 |
|
| 20 | + - browser-tools/install-browser-tools: |
| 21 | + install-firefox: false |
| 22 | + install-geckodriver: false |
| 23 | + |
17 | 24 | - run: |
18 | 25 | name: ✍️ Write job name. |
19 | 26 | command: echo $CIRCLE_JOB > circlejob.txt |
|
22 | 29 | key: deps1-{{ .Branch }}-{{ checksum "circlejob.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ checksum ".circleci/config.yml" }} |
23 | 30 |
|
24 | 31 | - run: |
25 | | - name: 🏗️ Create virtualenv |
| 32 | + name: 🏗️ Create venv |
26 | 33 | command: | |
27 | | - sudo pip install virtualenv |
28 | | - python -m venv venv || virtualenv venv |
| 34 | + python -m venv venv |
29 | 35 |
|
30 | 36 | - run: |
31 | 37 | name: 🏗️ Install requirements |
|
45 | 51 | pytest |
46 | 52 | when: always |
47 | 53 |
|
48 | | - python-3.7-install-test: |
| 54 | + python-3-12-install-test: |
49 | 55 | docker: |
50 | | - - image: circleci/python:3.7-stretch-node-browsers |
| 56 | + - image: cimg/python:3.12.7-browsers |
51 | 57 | auth: |
52 | 58 | username: dashautomation |
53 | 59 | password: $DASH_PAT_DOCKERHUB |
|
58 | 64 | steps: |
59 | 65 | - checkout |
60 | 66 |
|
| 67 | + - browser-tools/install-browser-tools: |
| 68 | + install-firefox: false |
| 69 | + install-geckodriver: false |
| 70 | + |
61 | 71 | - run: |
62 | 72 | name: ✍️ Write job name. |
63 | 73 | command: echo $CIRCLE_JOB > circlejob.txt |
|
66 | 76 | key: deps1-{{ .Branch }}-{{ checksum "circlejob.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ checksum ".circleci/config.yml" }} |
67 | 77 |
|
68 | 78 | - run: |
69 | | - name: 🏗️ Create virtualenv |
| 79 | + name: 🏗️ Create venv |
70 | 80 | command: | |
71 | | - sudo pip install virtualenv |
72 | | - python -m venv venv || virtualenv venv |
| 81 | + python -m venv venv |
73 | 82 |
|
74 | 83 | - run: |
75 | 84 | name: 🏗️ Install requirements |
@@ -102,7 +111,7 @@ workflows: |
102 | 111 | version: 2 |
103 | 112 | build: |
104 | 113 | jobs: |
105 | | - - python-3.6: |
| 114 | + - python-3-8: |
106 | 115 | context: dash-docker-hub |
107 | | - - python-3.7-install-test: |
| 116 | + - python-3-12-install-test: |
108 | 117 | context: dash-docker-hub |
0 commit comments