updating preflight sha for version 1.9.6 (#659) #18
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: validation | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
tox: | |
name: Run unit tests and linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: "3.11" | |
- name: Install non-python dependencies | |
run: | | |
sudo apt-get install -y libkrb5-dev | |
- name: Install Hadolint via Brew | |
run: | | |
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
/home/linuxbrew/.linuxbrew/bin/brew install hadolint | |
sudo ln -s /home/linuxbrew/.linuxbrew/bin/hadolint /usr/bin/ | |
- name: Install Python dependencies | |
run: | | |
pdm sync -dG tox | |
python3 -m pip install ansible-lint | |
- name: Run Tests | |
run: | | |
pdm run -v tox |