Skip to content

Commit

Permalink
Merge #171
Browse files Browse the repository at this point in the history
171: Add resource_class to circle ci to avoid timeouts r=aragilar a=aragilar



Co-authored-by: James Tocknell <[email protected]>
  • Loading branch information
bors[bot] and aragilar authored Jun 20, 2022
2 parents 72f7f33 + d8bad10 commit 266749c
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,23 @@ orbs:
tox_args:
type: string
default: --
executor: tox_exec
executor: tox_small_exec
steps:
- tox_pre
- tox_install
- tox_run:
tox_name: <<parameters.tox_name>>
tox_args: <<parameters.tox_args>>
- tox_post
tox_large_job:
parameters:
tox_name:
type: string
default: py310
tox_args:
type: string
default: --
executor: tox_large_exec
steps:
- tox_pre
- tox_install
Expand Down Expand Up @@ -80,22 +96,31 @@ orbs:
- /root/.cache/pip

executors:
tox_exec:
tox_small_exec:
parameters:
version:
type: string
default: "3.8"
docker:
- image: debian:unstable
resource_class: small
tox_large_exec:
parameters:
version:
type: string
default: "3.8"
docker:
- image: debian:unstable
resource_class: large

workflows:
version: 2
commit:
jobs:
- tox_orb/tox_job:
- tox_orb/tox_large_job:
name: py310
tox_name: py310
tox_args: -- -n 2
tox_args: -- -n 4
- tox_orb/tox_job:
name: flake8
tox_name: flake8
Expand All @@ -118,10 +143,10 @@ workflows:
only:
- master
jobs:
- tox_orb/tox_job:
- tox_orb/tox_large_job:
name: py310
tox_name: py310
tox_args: -- -n 2
tox_args: -- -n 4
- tox_orb/tox_job:
name: flake8
tox_name: flake8
Expand Down

0 comments on commit 266749c

Please sign in to comment.