Skip to content

Commit 93154ca

Browse files
Adds action to push coverage on master branch (#13)
1 parent 64d7c89 commit 93154ca

File tree

2 files changed

+45
-7
lines changed

2 files changed

+45
-7
lines changed

.github/workflows/master_coverage.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ArgoPy CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
7+
jobs:
8+
ci:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python-version: ["3.10"]
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install --requirement requirements.txt
24+
pip install --requirement requirements-test.txt
25+
- name: Install codecov cli
26+
run: |
27+
curl https://uploader.codecov.io/verification.gpg | gpg --no-default-keyring --keyring trustedkeys.gpg --import
28+
curl -Os https://uploader.codecov.io/latest/linux/codecov
29+
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
30+
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
31+
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
32+
shasum -a 256 -c codecov.SHA256SUM
33+
chmod +x codecov
34+
- name: Coverage with pytest
35+
run: |
36+
pytest --no-cov-on-fail --cov argocd --cov-report html --cov-report term --cov-report xml tests
37+
./codecov -t ${CODECOV_TOKEN}

.github/workflows/mr_ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ jobs:
2222
python -m pip install --upgrade pip
2323
pip install --requirement requirements.txt
2424
pip install --requirement requirements-test.txt
25-
- name: Lint Step
26-
run: |
27-
black --check --target-version py310 .
28-
isort --check --profile black --skip env .
29-
flake8 --count --show-source --statistics --exclude .git,env,__init__.py --max-line-length 88 .
30-
- name: Coverage with pytest
25+
- name: Install codecov cli
3126
run: |
3227
curl https://uploader.codecov.io/verification.gpg | gpg --no-default-keyring --keyring trustedkeys.gpg --import
3328
curl -Os https://uploader.codecov.io/latest/linux/codecov
@@ -36,6 +31,12 @@ jobs:
3631
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
3732
shasum -a 256 -c codecov.SHA256SUM
3833
chmod +x codecov
39-
34+
- name: Lint Step
35+
run: |
36+
black --check --target-version py310 .
37+
isort --check --profile black --skip env .
38+
flake8 --count --show-source --statistics --exclude .git,env,__init__.py --max-line-length 88 .
39+
- name: Coverage with pytest
40+
run: |
4041
pytest --no-cov-on-fail --cov argocd --cov-report html --cov-report term --cov-report xml tests
4142
./codecov -t ${CODECOV_TOKEN}

0 commit comments

Comments
 (0)