-
Notifications
You must be signed in to change notification settings - Fork 6
58 lines (45 loc) · 1.24 KB
/
test.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
58
name: tests
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "*.*.*"
pull_request:
branches:
- main
env:
package-name: amltk
test-dir: tests
extra-requires: "[dev]" # "" for no extra_requires
jobs:
test:
name: ${{ matrix.python-version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash # Default to using bash on all
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"] # "3.12" doesn't work because of ConfigSpace for some reason.
os: ["ubuntu-latest"] # Disable mac and windows until time to fix pynisher, "macos-latest", "windows-latest"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install ${{ env.package-name }}
run: |
python -m pip install -e ".${{ env.extra-requires }}"
- name: Tests
run: |
pytest ${{ env.test-dir }}