feat: add azure CI snippet for dart-analyze (#20) #187
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tox | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Python tests | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 1 | |
- name: Setup python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.11 | |
architecture: x64 | |
- name: Install dependencies | |
run: pip install tox | |
- name: Run tests and type checking | |
run: tox | |
- name: Report test coverage to DeepSource | |
uses: deepsourcelabs/test-coverage-action@master | |
with: | |
key: python | |
coverage-file: ./coverage.xml | |
dsn: ${{ secrets.DEEPSOURCE_DSN }} |