Skip to content

Commit

Permalink
Add fetch depth
Browse files Browse the repository at this point in the history
  • Loading branch information
davlum committed May 1, 2020
1 parent ddf68bf commit 6791ed6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ name: Docker Image CI
on: [push]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
# Number of commits to fetch. 0 indicates all history.
# Default: 1
fetch-depth: 0
- name: Build the docker-compose stack
run: docker-compose up -d
- name: Check running containers
Expand Down
4 changes: 2 additions & 2 deletions test/test_convert_s3_to_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@


def test_extract_s3_parts():
s3_path = 's3://adgear-data/hash/hourly/trader/exchange/2019-10-15/00'
s3_path = 's3://data/hash/hourly/trader/exchange/2019-10-15/00'
bucket, key = extract_s3_parts(s3_path)
assert bucket == 'adgear-data'
assert bucket == 'data'
assert key == 'hash/hourly/trader/exchange/2019-10-15/00'
with pytest.raises(ValueError) as e:
extract_s3_parts('foobar')
Expand Down

0 comments on commit 6791ed6

Please sign in to comment.