Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlhui committed May 21, 2024
1 parent 6ba499d commit e16ae4b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dependabot_auto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: pytest

on:
workflow_run:
workflows: ["Dependabot PR Check"]
types:
- completed

jobs:
dependabot-check:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, windows-latest, macos-12, macos-11]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install poetry
poetry install
- name: Test
env:
NAS_CREDS: ${{ secrets.NAS_CREDS }}
run: |
python -m pytest tests/
10 changes: 10 additions & 0 deletions .github/workflows/dependabot_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Dependabot PR Check

on: pull_request_target

jobs:
check-dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- run: echo "PR created by Dependabot"
1 change: 1 addition & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
os: [ubuntu-20.04, ubuntu-22.04, windows-latest, macos-12, macos-11]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
Expand Down

0 comments on commit e16ae4b

Please sign in to comment.