-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.12 KB
/
test-yoda.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
name: Test
on:
push:
branches:
- master
pull_request:
# Run daily at 0:01 UTC
schedule:
- cron: '1 0 * * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
container: apnpucky/gentoo-yoda:${{ matrix.yoda-version }}-latest
strategy:
matrix:
yoda-version: ['1.9.10', '2.0.1']
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v3
- name: Install dependencies
run: |
pip install '.[test]' --break-system-packages
pip list
- name: Test with pytest
run: |
pytest -r sx tests/
# - name: Report core project coverage with Codecov
# if: >-
# github.event_name != 'schedule' &&
# matrix.os == 'ubuntu-latest'
# uses: codecov/codecov-action@v4
# with:
# fail_ci_if_error: true
# files: ./coverage.xml
# flags: unittests-${{ matrix.python-version }}
# name: pylhe
# token: ${{ secrets.CODECOV_TOKEN }}