-
Notifications
You must be signed in to change notification settings - Fork 36
68 lines (60 loc) · 1.63 KB
/
Copy pathtests-min.yml
File metadata and controls
68 lines (60 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
67
68
name: Unit Tests
on:
push:
branches: [main]
paths:
- "src/**"
- "tests/package/**"
- "tests/conftest.py"
- "tox.ini"
- "pyproject.toml"
- "MANIFEST.in"
pull_request_target:
branches: [main]
paths:
- "src/**"
- "tests/package/**"
- "tests/conftest.py"
- "tox.ini"
- "pyproject.toml"
- "MANIFEST.in"
permissions:
contents: read
jobs:
tests:
if: github.repository == 'NMRLipids/FAIRMD_lipids'
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Python ${{ matrix.python-version }}
strategy:
matrix:
include:
- os: ubuntu-24.04
python-version: "3.10"
- os: ubuntu-24.04
python-version: "3.13"
- os: macos-15
python-version: "3.13"
- os: windows-2025
python-version: "3.13"
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
check-latest: true
- run: python -m pip install tox coverage[toml]
- name: run Python tests
run: tox -e tests-min
- name: generate coverage.xml
run: coverage xml
- name: upload to codecov.io
uses: codecov/codecov-action@v6
with:
fail_ci_if_error: true
files: tests/coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}