mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
Merge pull request #9 from codecov/drazisil-patch-1
Repo now self-tests
This commit is contained in:
24
.github/workflows/main.yml
vendored
Normal file
24
.github/workflows/main.yml
vendored
Normal file
@@ -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: ./
|
||||||
|
with:
|
||||||
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
|
flags: unittest
|
||||||
|
name: codecov-1
|
||||||
|
#badstuff: morebadstuff
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
# Codecov @codecov
|
# Codecov @codecov
|
||||||
|
|
||||||
FROM alpine:3.10
|
FROM ubuntu:latest
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
RUN apk add --no-cache curl bash git
|
RUN apt update && apt install -y curl
|
||||||
|
|
||||||
RUN chmod +x /app/entrypoint.sh
|
RUN chmod +x /app/entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user