Skip to content

Merge pull request #209 from nzlosh/st2v3.9_updates #20

Merge pull request #209 from nzlosh/st2v3.9_updates

Merge pull request #209 from nzlosh/st2v3.9_updates #20

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
# Special job which automatically cancels old runs for the same branch, prevents runs for the
# same file set which has already passed, etc.
pre_job:
name: Skip Duplicate Jobs Pre Job
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@4c656bbdb6906310fa6213604828008bc28fe55d # v3.3.0
with:
cancel_others: 'true'
github_token: ${{ github.token }}
lint-checks:
needs: pre_job
name: Make requirements and lint checks
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout st2tests repository
uses: actions/checkout@v2
- name: Checkout st2 repository
uses: actions/checkout@v2
with:
repository: "StackStorm/st2"
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install apt dependencies
run: |
sudo apt install -y libldap2-dev libsasl2-dev
- name: Install virtualenv
run: |
python3 -m pip install virtualenv
- name: Make requirements
timeout-minutes: 5
run: |
script -e -c "make requirements"
- name: Make Lint
timeout-minutes: 15
run: |
script -e -c "make lint"