Wait for freshness grades before publishing #15
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 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 |