Merge pull request #164 from stfc/f01adependabot/github_actions/azure… #88
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: AQ Zombie Finder Unittest | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- "aq_zombie_finder/**" | |
- ".github/workflows/aq_zombie_finder.yaml" | |
jobs: | |
test_with_unit_test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["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 }} | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r aq_zombie_finder/requirements.txt | |
- name: Test with unittest | |
run: | | |
cd aq_zombie_finder && python3 -m unittest discover -s ./test -p "test_*.py" |