Skip to content

ENH: Added rule to start the patch reboot workflow #1511

ENH: Added rule to start the patch reboot workflow

ENH: Added rule to start the patch reboot workflow #1511

Workflow file for this run

name: Unit Tests
on:
pull_request:
push:
branches:
- 'master'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# 3.9+ is not currently supported due to https://github.com/freach/udatetime/issues/32
python-version: ["3.8", "3.9"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install ST2 Test Runner
run: |
python3 -m pip install virtualenv
sudo apt-get update
# Required to get python-ldap wheel building
sudo apt-get install -y --no-install-recommends libsasl2-dev python3-dev libldap2-dev libssl-dev
- name: Run Tests
run: cd $GITHUB_WORKSPACE && ./run_tests.sh
- name: Run pytest with codecov
run: |
pip install -r requirements.txt
pytest tests/enums tests/lib --cov=lib --cov=tests/enums --cov=tests/lib --cov-report xml:coverage.xml
- name: Submit Coverage
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{secrets.CODECOV_TOKEN}}