From 9d47efe7b935fb06837d4d9c180ac824dea8a343 Mon Sep 17 00:00:00 2001 From: Joe Becher Date: Sat, 24 Aug 2019 12:24:31 -0400 Subject: [PATCH 1/8] local tests --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9b34204 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Example workflow for Codecov +on: [push] +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + +# - name: Setup Python +# uses: actions/setup-python@master + +# - name: Generate coverage report +# run: | +# pip install pytest +# pip install pytest-cov +# pytest --cov=./ --cov-report=xml + + - name: Upload coverage to Codecov + uses: .action + with: + token: ${{secrets.CODECOV_TOKEN}} + flags: unittest + name: codecov-1 + #badstuff: morebadstuff From bd5538d84a73bd016fdd72b56072ea794e2a2ae3 Mon Sep 17 00:00:00 2001 From: Joe Becher Date: Sat, 24 Aug 2019 12:27:33 -0400 Subject: [PATCH 2/8] add slash --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b34204..80fa8bc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: # pytest --cov=./ --cov-report=xml - name: Upload coverage to Codecov - uses: .action + uses: ./action with: token: ${{secrets.CODECOV_TOKEN}} flags: unittest From 392e5b27112316ea2026f82e764680f29e07b4dd Mon Sep 17 00:00:00 2001 From: Joe Becher Date: Sat, 24 Aug 2019 12:29:34 -0400 Subject: [PATCH 3/8] does this work? --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80fa8bc..acf058f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: # pytest --cov=./ --cov-report=xml - name: Upload coverage to Codecov - uses: ./action + uses: . with: token: ${{secrets.CODECOV_TOKEN}} flags: unittest From 9e1c4566622cedeca424434e1d59e7c525f29952 Mon Sep 17 00:00:00 2001 From: Joe Becher Date: Sat, 24 Aug 2019 12:32:59 -0400 Subject: [PATCH 4/8] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index acf058f..eed85bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: # pytest --cov=./ --cov-report=xml - name: Upload coverage to Codecov - uses: . + uses: ./ with: token: ${{secrets.CODECOV_TOKEN}} flags: unittest From cbad155b75aa68e644bfcacff4bc5e681e756535 Mon Sep 17 00:00:00 2001 From: Joe Becher Date: Sat, 24 Aug 2019 12:34:36 -0400 Subject: [PATCH 5/8] use ubuntu --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f9cd8d0..bcad7ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Codecov @codecov -FROM alpine:3.10 +FROM ubuntu:latest WORKDIR /app COPY . /app @@ -9,4 +9,4 @@ RUN apk add --no-cache curl bash git RUN chmod +x /app/entrypoint.sh -ENTRYPOINT [ "/app/entrypoint.sh" ] \ No newline at end of file +ENTRYPOINT [ "/app/entrypoint.sh" ] From e61b7383556851f84343e4b5179a7b8d88170e49 Mon Sep 17 00:00:00 2001 From: Joe Becher Date: Sat, 24 Aug 2019 12:36:15 -0400 Subject: [PATCH 6/8] no need for apk --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bcad7ec..d7f955b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM ubuntu:latest WORKDIR /app COPY . /app -RUN apk add --no-cache curl bash git +# RUN apk add --no-cache curl bash git RUN chmod +x /app/entrypoint.sh From 75d10d924b55b231a53af3eb3ce2f87dd1c89e23 Mon Sep 17 00:00:00 2001 From: Joe Becher Date: Sat, 24 Aug 2019 12:37:54 -0400 Subject: [PATCH 7/8] Install curl --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d7f955b..2b06e0e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM ubuntu:latest WORKDIR /app COPY . /app -# RUN apk add --no-cache curl bash git +RUN sudo apt update && sudo apt install -y curl RUN chmod +x /app/entrypoint.sh From 886c7c8bc86c28d6320c552025b2f83c5ecb24f4 Mon Sep 17 00:00:00 2001 From: Joe Becher Date: Sat, 24 Aug 2019 12:39:08 -0400 Subject: [PATCH 8/8] Don't need sudo --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2b06e0e..64edaf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM ubuntu:latest WORKDIR /app COPY . /app -RUN sudo apt update && sudo apt install -y curl +RUN apt update && apt install -y curl RUN chmod +x /app/entrypoint.sh