Skip to content

Commit

Permalink
Use poetry.toml instead of poetry.lock for cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
y26805 committed Oct 12, 2022
1 parent dd32c75 commit 446d51d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1,447 deletions.
7 changes: 3 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: deps-{{ checksum "poetry.lock" }}
key: deps-{{ checksum "poetry.toml" }}
paths:
- .
- run:
Expand All @@ -28,7 +28,7 @@ jobs:
poetry config virtualenvs.in-project true
poetry install
- save_cache:
key: deps-{{ checksum "poetry.lock" }}
key: deps-{{ checksum "poetry.toml" }}
paths:
- .
- persist_to_workspace:
Expand All @@ -50,8 +50,7 @@ jobs:
name: "Run Tests"
command: |
mkdir /home/circleci/reports/
ls .
TESTFILES=$(circleci tests glob tests/**/test*.py | circleci tests split --split-by=timings)
TESTFILES=$(circleci tests glob tests/test*.py | circleci tests split --split-by=timings)
export REMOTE_SERVICE="http://${BROWSERSTACK_USERNAME}:${BROWSERSTACK_API_KEY}@hub.browserstack.com:80/wd/hub"
export REMOTE_BROWSER="{\"bstack:options\": {\"os\": \"Windows\", \"osVersion\": \"10\", \"resolution\": \"1024x768\", \"local\": \"true\", \"seleniumVersion\": \"3.14.0\", \"localIdentifier\": \"${CIRCLE_SHA1}\", \"buildName\": \"${CIRCLE_SHA1}-${CIRCLE_BUILD_NUM}-Chrome\", \"projectName\": \"arsenic\"}, \"browserName\": \"Chrome\", \"browserVersion\": \"latest\"}"
export BROWSERSTACK_LOCAL_IDENTIFIER="${CIRCLE_SHA1}"
Expand Down
Loading

0 comments on commit 446d51d

Please sign in to comment.