-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (59 loc) · 1.63 KB
/
Copy pathtest.yml
File metadata and controls
66 lines (59 loc) · 1.63 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: Test tailestim
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '.github/workflows/release.yml'
- '.gitignore'
- '.readthedocs.yaml'
- 'DEVELOP.md'
- 'LICENSE.txt'
- 'README.md'
pull_request:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '.github/workflows/release.yml'
- '.gitignore'
- '.readthedocs.yaml'
- 'DEVELOP.md'
- 'LICENSE.txt'
- 'README.md'
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
if: ${{ !contains(github.event_name == 'pull_request' && github.event.pull_request.title || github.event.head_commit.message || '', '[skip ci]') }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout tailestimation as subdirectory
uses: actions/checkout@v4
with:
repository: ${{ secrets.TAILESTIMATION_REPO }}
token: ${{ secrets.TAILESTIMATION_PAT }}
path: tail-estimation
- name: Set up Python versions
uses: actions/setup-python@v5
with:
# Install all Python versions needed for testing
python-version: |
3.8
3.9
3.10
3.11
3.12
3.13
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Run tests on all Python versions
run: |
# hatch will use the installed Python versions
hatch run test:all