File tree Expand file tree Collapse file tree 2 files changed +45
-7
lines changed Expand file tree Collapse file tree 2 files changed +45
-7
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 : 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
31
26
run : |
32
27
curl https://uploader.codecov.io/verification.gpg | gpg --no-default-keyring --keyring trustedkeys.gpg --import
33
28
curl -Os https://uploader.codecov.io/latest/linux/codecov
36
31
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
37
32
shasum -a 256 -c codecov.SHA256SUM
38
33
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 : |
40
41
pytest --no-cov-on-fail --cov argocd --cov-report html --cov-report term --cov-report xml tests
41
42
./codecov -t ${CODECOV_TOKEN}
You can’t perform that action at this time.
0 commit comments