File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Cron Test
2+
3+ on :
4+ schedule :
5+ # Run every Tuesday at 11:00.
6+ - cron : ' 0 11 * * 2'
7+
8+ jobs :
9+ test :
10+ runs-on : ${{ matrix.os }}
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ os : [ubuntu-latest, macos-latest, windows-latest]
15+ python-version : [3.6, 3.7, 3.8, 3.9]
16+
17+ steps :
18+ - uses : actions/checkout@v2
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v2
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+ - name : Install dependencies
24+ run : |
25+ python -m pip install --upgrade pip setuptools wheel
26+ python -m pip install tox tox-gh-actions
27+ - name : Check requirements with pip
28+ run : python -m pip check .
29+ - name : Test isort
30+ run : tox -e isort
31+ if : matrix.python-version == '3.6'
32+ - name : Test black
33+ run : tox -e black
34+ if : matrix.python-version == '3.6'
35+ - name : Test flake8
36+ run : tox -e flake8
37+ if : matrix.python-version == '3.6'
38+ - name : Test docs
39+ run : tox -e docs
40+ if : matrix.python-version == '3.6'
41+ - name : Test safety
42+ run : tox -e safety
43+ - name : Test suite
44+ run : tox -- --cov-report=xml
45+ env :
46+ SECRET_WORKSPACE_ID : ${{ secrets.STRUCTURIZR_WORKSPACE_ID }}
47+ SECRET_API_KEY : ${{ secrets.STRUCTURIZR_API_KEY }}
48+ SECRET_API_SECRET : ${{ secrets.STRUCTURIZR_API_SECRET }}
You can’t perform that action at this time.
0 commit comments