Skip to content

Fix CI

Fix CI #586

Workflow file for this run

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 flake8-import-order
- 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.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 }}
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 }}
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 }}