Skip to content

State machines behaviour trees #34

State machines behaviour trees

State machines behaviour trees #34

name: Codacy Analysis
on: [pull_request]
jobs:
codacy-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.x"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests and coverage
run: |
pip install codacy-coverage
coverage run -m pytest
coverage xml -o coverage.xml
- name: Upload coverage to Codacy
run: |
python-codacy-coverage -r coverage.xml
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}