Skip to content

[Added][Experimental] Option to enable the file creation by PID #474

[Added][Experimental] Option to enable the file creation by PID

[Added][Experimental] Option to enable the file creation by PID #474

Workflow file for this run

name: Regression tests
on:
push:
paths:
- '**.py'
- 'src/*_do'
- 'tests/**'
- '.github/workflows/pythonapp.yml'
pull_request:
paths:
- '**.py'
- 'src/*_do'
- 'tests/**'
- '.github/workflows/pythonapp.yml'
jobs:
test:
# continue-on-error: true
strategy:
fail-fast: false
matrix:
ki_release: [ki5, ki6, ki7]
w_tests: [interposer, no_interposer]
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad_auto_test:${{ matrix.ki_release }}
steps:
- uses: actions/checkout@v3
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 . --count --exit-zero --statistics
- name: Test ${{ matrix.ki_release }}
shell: bash
run: |
if [ "${{ matrix.w_tests }}" == 'no_interposer' ]; then export KIAUTO_INTERPOSER_DISABLE=1; fi
make test_server_${{ matrix.ki_release }}
- name: Store results
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: Test_Output_${{ matrix.ki_release }}_${{ matrix.w_tests }}
path: output
- name: Upload Coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.ki_release }}_${{ matrix.w_tests }}
COVERALLS_PARALLEL: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls
coveralls:
name: Finish Coveralls
needs: test
runs-on: ubuntu-latest
steps:
- name: Finished
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]="$GITHUB_RUN_ID"&payload[status]=done"