forked from probabl-ai/skore-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.34 KB
/
Copy pathtests.yml
File metadata and controls
50 lines (42 loc) · 1.34 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
name: tests
on:
push:
branches:
- main
pull_request:
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
defaults:
run:
shell: bash
jobs:
tests:
name: ${{ matrix.os }} / ${{ matrix.environment }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
environment: [test-py311, test-py312, test-py313, test-py314]
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up pixi
uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6
with:
environments: ${{ matrix.environment }}
# Install strictly from the committed pixi.lock so CI runs against the
# locked dependencies. The lock file is refreshed by the weekly
# update_pixi_lock_files workflow.
frozen: true
- name: Run tests
run: pixi run -e ${{ matrix.environment }} tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: probabl-ai/skore-cli