-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (46 loc) · 1.22 KB
/
unit-test-ci.yml
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
name: ci-tests
on:
pull_request:
branches:
- main
jobs:
check_tests_trigger:
name: Check Tests trigger
runs-on: ubuntu-latest
outputs:
tests: ${{ steps.check_tests_trigger.outputs.tests }}
steps:
- name: Checkout scikit-longitudinal
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- id: check_tests_trigger
name: Check tests trigger
run: bash build_tools/github/check_tests_trigger.sh
Testing:
runs-on: ${{ matrix.os }}
needs: check_tests_trigger
if: needs.check_tests_trigger.outputs.tests
strategy:
matrix:
python-version: [3.9]
os: [ubuntu-latest]
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Checkout this repository
uses: actions/checkout@v2
- uses: pdm-project/setup-pdm@main
name: Setup PDM
with:
python-version: 3.9
architecture: x64
prerelease: false
enable-pep582: true
- name: Install dependencies from pdm.lock
run: |
pdm install
- name: Run tests
run: pdm run tests