-
-
Notifications
You must be signed in to change notification settings - Fork 14
95 lines (93 loc) · 3.35 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: ci
on: [ push, pull_request ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install flake8
- run: pip install mypy
- run: pip install requests
- run: pip install types-mock
- run: pip install types-requests
- run: flake8 bin/chroma-feedback chroma_feedback tests
- run: mypy bin/chroma-feedback chroma_feedback tests
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- run: sudo apt-get install libegl1
- run: sudo apt-get install libxkbcommon0
- run: pip install mock
- run: pip install pyqt6
- run: pip install pytest
- run: pip install pytest-mock
- run: pip install requests
- run: pytest tests
env:
APPVEYOR_TOKEN: ${{ secrets.APPVEYOR_TOKEN }}
ATLASSIAN_BITBUCKET_USERNAME: ${{ secrets.ATLASSIAN_BITBUCKET_USERNAME }}
ATLASSIAN_BITBUCKET_PASSWORD: ${{ secrets.ATLASSIAN_BITBUCKET_PASSWORD }}
CIRCLE_TOKEN: ${{ secrets.CIRCLE_TOKEN }}
CLOUDBEES_CODESHIP_USERNAME: ${{ secrets.CLOUDBEES_CODESHIP_USERNAME }}
CLOUDBEES_CODESHIP_PASSWORD: ${{ secrets.CLOUDBEES_CODESHIP_PASSWORD }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
HEROKU_TOKEN: ${{ secrets.HEROKU_TOKEN }}
JETBRAINS_TEAMCITY_TOKEN: ${{ secrets.JETBRAINS_TEAMCITY_TOKEN }}
MICROSOFT_GITHUB_TOKEN: ${{ secrets.MICROSOFT_GITHUB_TOKEN }}
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
TRAVIS_TOKEN: ${{ secrets.TRAVIS_TOKEN }}
UPTIMEROBOT_TOKEN: ${{ secrets.UPTIMEROBOT_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
report:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
- run: sudo apt-get install libegl1
- run: sudo apt-get install libxkbcommon0
- run: sudo apt-get install libdbus-1-3
- run: pip install coveralls
- run: pip install mock
- run: pip install pyqt6
- run: pip install pytest
- run: pip install pytest-cov
- run: pip install pytest-mock
- run: pip install requests
- run: pytest tests --cov chroma_feedback
env:
APPVEYOR_TOKEN: ${{ secrets.APPVEYOR_TOKEN }}
ATLASSIAN_BITBUCKET_USERNAME: ${{ secrets.ATLASSIAN_BITBUCKET_USERNAME }}
ATLASSIAN_BITBUCKET_PASSWORD: ${{ secrets.ATLASSIAN_BITBUCKET_PASSWORD }}
CIRCLE_TOKEN: ${{ secrets.CIRCLE_TOKEN }}
CLOUDBEES_CODESHIP_USERNAME: ${{ secrets.CLOUDBEES_CODESHIP_USERNAME }}
CLOUDBEES_CODESHIP_PASSWORD: ${{ secrets.CLOUDBEES_CODESHIP_PASSWORD }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
HEROKU_TOKEN: ${{ secrets.HEROKU_TOKEN }}
JETBRAINS_TEAMCITY_TOKEN: ${{ secrets.JETBRAINS_TEAMCITY_TOKEN }}
MICROSOFT_GITHUB_TOKEN: ${{ secrets.MICROSOFT_GITHUB_TOKEN }}
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
TRAVIS_TOKEN: ${{ secrets.TRAVIS_TOKEN }}
UPTIMEROBOT_TOKEN: ${{ secrets.UPTIMEROBOT_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
- run: coveralls --service github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}