45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Integration Tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
|
|
Integration-Tests:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Clear cache
|
|
run: |
|
|
rm -r ~/.triton/
|
|
continue-on-error: true
|
|
|
|
- name: Check imports
|
|
run: |
|
|
pip install isort
|
|
isort -c ./python || ( echo '::error title=Imports not sorted::Please run \"isort ./python\"' ; exit 1 )
|
|
|
|
- name: Check style
|
|
run: |
|
|
pip install autopep8
|
|
autopep8 -a -r -d --exit-code ./python || ( echo '::error title=Style issues::Please run \"autopep8 -a -r -i ./python\"' ; exit 1 )
|
|
|
|
- name: Flake8
|
|
run: |
|
|
pip install flake8
|
|
flake8 --config ./python/setup.cfg ./python || ( echo '::error::Flake8 failed; see logs for errors.' ; exit 1 )
|
|
|
|
- name: Install Triton
|
|
run: |
|
|
alias python='python3'
|
|
cd python
|
|
pip3 install -e '.[tests]'
|