Skip to content

Commit a2885e0

Browse files
authored
test: create a prerelease job (#247)
1 parent 57292b8 commit a2885e0

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/prerelease.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Scheduled pre-release tests
2+
3+
on:
4+
# Run this workflow once a week (https://crontab.guru/#0_5_*_*_1)
5+
schedule:
6+
- cron: "0 5 * * 1"
7+
workflow_dispatch:
8+
9+
# env variable to force pip to install pre-released versions
10+
# in hatch envs
11+
env:
12+
PIP_PRE: 1
13+
14+
jobs:
15+
tests:
16+
strategy:
17+
matrix:
18+
python-version: ["3.8", "3.9", "3.10", "3.11", " 3.12"]
19+
os: [ubuntu-latest]
20+
include:
21+
- os: windows-latest
22+
python-version: "3.12"
23+
- os: macos-latest
24+
python-version: "3.12"
25+
runs-on: ${{ matrix.os }}
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
- name: Install dependencies
33+
run: pip install hatch
34+
- name: Run tests
35+
run: hatch run test:test -x
36+
37+
docs:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: actions/setup-python@v5
42+
- name: Install dependencies
43+
run: pip install hatch
44+
45+
- name: Build docs
46+
run: hatch run doc:build

0 commit comments

Comments
 (0)