Skip to content

Updated unit test script permissions and cleanup #37

Updated unit test script permissions and cleanup

Updated unit test script permissions and cleanup #37

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
env:
MIXER_BASH_EXE: C:\Program Files\Git\bin\bash.exe
VRTIST_PORT: 25600
MIXER_TEST_OUTPUT: logs\tests
jobs:
pre_release:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pep8-naming mypy sphinx sphinx-rtd-theme requests --constraint requirements-dev.txt
- name: Run ruff
run: |
ruff -v mixer tests extra
- name: Run mypy
run: |
mypy mixer
continue-on-error: true
# - name: Build docs
# run: |
# sphinx-build -b html docs docs/_build/html
# rm -rf docs/_build/doctree
- name: Zip files
run: |
cp CHANGELOG.md README.md LICENSE mixer/
rm -rf mixer/blender_data/tests/
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: "${{ github.ref_name }}_${{ github.sha }}"
path: |
docs/_build
mixer
test_base:
needs: pre_release
runs-on: ubuntu-latest
strategy:
matrix:
blender-version: ["3.3.19"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: "${{ github.ref_name }}_${{ github.sha }}"
path: .
- name: Run tests
run: |
chmod +x gitlab/run_unittest.sh
./gitlab/run_unittest.sh