Skip to content

Commit

Permalink
first try to run nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Mar 12, 2024
1 parent f95e4d0 commit 8ddd1f4
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/CI_nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: nightly

on:
workflow_dispatch: # Activate this workflow manually
schedule:
- cron: "0 0 * * *"
# TODO: rm the following event
push:
branches:
- nightly

jobs:
run:
name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10']

steps:
- name: Support longpaths
if: matrix.os == 'windows-latest'
working-directory: .
run: git config --system core.longpaths true

- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
run: pip install --upgrade hatch

- name: Run tests
run: |
for d in integrations/* ; do
cd $d
hatch hatch run cov
hatch env prune # clean up the environment after docs generation
cd -
done

0 comments on commit 8ddd1f4

Please sign in to comment.