Skip to content

Commit

Permalink
Add python nightly workflow (#150)
Browse files Browse the repository at this point in the history
Closes #143
  • Loading branch information
hamdanal authored Jan 12, 2025
1 parent 160ce70 commit f946bb3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: nightly-tests

on:
push:
branches: ["main", "python-nightly"]
paths-ignore:
- ".vscode/**"
- "scripts/**"
- ".pre-commit-config.yaml"
- "*.md"
schedule:
- cron: '0 8 * * *'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.14-dev"]
name: main
steps:
- uses: actions/checkout@v4
- uses: deadsnakes/[email protected]
with:
python-version: ${{ matrix.python-version }}
- run: python --version --version && which python
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
uv venv --python $(which python)
uv pip install . -r tests/requirements.txt
- name: Run the test suite
run: uv run pytest -vv --color=yes --cov
6 changes: 0 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,3 @@ jobs:
uv pip install . -r tests/requirements.txt
- name: Run the test suite
run: uv run pytest -vv --color=yes --cov
- name: Upload coverage report if tests fail.
uses: actions/upload-artifact@v4
with:
name: code-coverage-report-${{ runner.os }}-python-${{ matrix.python-version }}
path: htmlcov
if: ${{ failure() }}

0 comments on commit f946bb3

Please sign in to comment.