-
Notifications
You must be signed in to change notification settings - Fork 116
66 lines (56 loc) · 1.64 KB
/
Copy pathnightly.yml
File metadata and controls
66 lines (56 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Nightly
on:
schedule:
# Run (on default branch only) at 05:00 (hr:mm) UTC -> 12am EST
- cron: "0 5 * * *"
workflow_dispatch:
jobs:
test-dev:
name: Dev / ${{ matrix.os }} / py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --group test --extra extras
- name: Build package
run: uv build
- name: Run tests
run: uv run pytest -v
test-pypi:
name: PyPI / ${{ matrix.os }} / py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
python-version: ${{ matrix.python-version }}
- name: Install PoreSpy from PyPI
run: |
uv venv
uv pip install porespy[extras] pytest pytest-cov
uv run python -c "import porespy; print(porespy.__version__)"