Skip to content

Commit

Permalink
fix(ci:circleci): Add python3
Browse files Browse the repository at this point in the history
  • Loading branch information
lakkeger committed Mar 20, 2024
1 parent 88927f2 commit 7ae57b7
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
version: 2.1
orbs:
localstack: localstack/[email protected]

jobs:
save-state:
docker:
- image: cimg/python:3.9
executor: localstack/default
steps:
- localstack/start
- checkout
- run:
name: Install dependencies
command:
pip install -r requirements-dev.txt
pip3 install -r requirements-dev.txt
- localstack/wait
- run:
name: Deploy infrastructure
Expand All @@ -26,31 +23,26 @@ jobs:
paths:
- ls-state.zip
key: ls-state
# - save_cache:
# paths:
# - ~/.cache/pip
# key: python-deps
- save_cache:
paths:
- ~/.cache/pip
key: python-deps
load-state:
docker:
- image: cimg/python:3.9
executor: localstack/default
steps:
- localstack/start
- checkout
- run:
name: Install dependencies
command:
pip install -r requirements-dev.txt
- restore_cache:
key: python-deps
- localstack/wait
- restore_cache:
key: ls-state
- run:
name: Import state
command: (test -f ls-state.zip && localstack state import ls-state.zip) || true
workflows:
setup-infra:
do-tests:
jobs:
- save-state
test:
jobs:
- load-state
- load-state:
needs: [save-state]

0 comments on commit 7ae57b7

Please sign in to comment.