File tree 2 files changed +47
-0
lines changed 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
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}
Original file line number Diff line number Diff line change 22
22
python -m pip install --upgrade pip
23
23
pip install --requirement requirements.txt
24
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
25
34
- name : Lint Step
26
35
run : |
27
36
black --check --target-version py310 .
30
39
- name : Coverage with pytest
31
40
run : |
32
41
pytest --no-cov-on-fail --cov argocd --cov-report html --cov-report term --cov-report xml tests
42
+ ./codecov -t ${CODECOV_TOKEN}
You can’t perform that action at this time.
0 commit comments