lint-and-unit-tests #439
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: lint-and-unit-tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- master | |
schedule: | |
- cron: 0 1 * * * | |
workflow_dispatch: | |
jobs: | |
build-and-test-python: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.version }} | |
- name: Clone StackStorm/st2 repo | |
run: | | |
make .clone_st2_repo | |
- name: Download and install depedencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libldap2-dev libsasl2-dev | |
sudo apt-get -y install python3-virtualenv | |
make requirements | |
- name: Run lint and tests (Python ${{ matrix.version }}) | |
run: | | |
make .lint | |
make .unit-tests | |