Skip to content

Commit

Permalink
Merge pull request #56 from Snuffy2/Disable-pytest-in-Github-Actions
Browse files Browse the repository at this point in the history
Disable pytest in Github Actions
  • Loading branch information
Snuffy2 authored Aug 29, 2024
2 parents b887a93 + 328cf26 commit 6c0b855
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 33 deletions.
17 changes: 7 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
version: 2
updates:
- package-ecosystem: pip
# - package-ecosystem: pip
# directory: "/"
# schedule:
# interval: daily
# open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
interval: "daily"
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: /
groups:
github-actions:
patterns:
- "*" # Group all Actions updates into a single larger pull request
schedule:
interval: weekly
46 changes: 23 additions & 23 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@ jobs:
- run: python3 -m pip install black
- run: black .

tests:
runs-on: "ubuntu-latest"
name: Run tests
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v4"
- name: Setup Python
uses: "actions/setup-python@v5"
with:
python-version: "3.12"
- name: Install requirements
run: python3 -m pip install -r requirements_test.txt
- name: Run tests
run: |
pytest \
-qq \
--timeout=9 \
--durations=10 \
-n auto \
--cov custom_components.resmed_myair \
-o console_output_style=count \
-p no:sugar \
tests
# tests:
# runs-on: "ubuntu-latest"
# name: Run tests
# steps:
# - name: Check out code from GitHub
# uses: "actions/checkout@v4"
# - name: Setup Python
# uses: "actions/setup-python@v5"
# with:
# python-version: "3.12"
# - name: Install requirements
# run: python3 -m pip install -r requirements_test.txt
# - name: Run tests
# run: |
# pytest \
# -qq \
# --timeout=9 \
# --durations=10 \
# -n auto \
# --cov custom_components.resmed_myair \
# -o console_output_style=count \
# -p no:sugar \
# tests
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ venv
.venv
.coverage
.idea
Thumbs.db
.DS_Store
Binary file removed custom_components/.DS_Store
Binary file not shown.

0 comments on commit 6c0b855

Please sign in to comment.