Repository navigation
75 lines (72 loc) · 2.49 KB
/
Copy pathtest.yml
File metadata and controls
75 lines (72 loc) · 2.49 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
69
70
71
72
73
74
75
name: test
on:
push:
permissions:
contents: read
jobs:
test-build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.11', 'pypy3.11', '3.12', '3.13', '3.14', '3.15']
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v10.4.0
with:
python-version: ${{ matrix.python-version }}
- run: uv sync --only-group publish
- run: uv run -m build
test-unittest:
name: unittest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.11', 'pypy3.11', '3.12', '3.13', '3.14', '3.15']
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v10.4.0
with:
python-version: ${{ matrix.python-version }}
- run: uv sync --group coverage
- run: git clone https://github.com/PyCQA/pycodestyle ../pycodestyle
- if: matrix.os != 'windows-latest'
run: |
set -Eeuxo pipefail
source .venv/bin/activate
cd ../pycodestyle
python -m pip install setuptools
python setup.py build
cd -
- run: git clone https://github.com/mbdevpl/argunparse ../argunparse
- if: matrix.os != 'windows-latest'
run: |
set -Eeuxo pipefail
source .venv/bin/activate
cd ../argunparse
python -m pip install -r requirements_test.txt
python setup.py build
cd -
- run: git clone https://github.com/python-semver/python-semver ../semver
- if: matrix.os != 'windows-latest'
run: |
set -Eeuxo pipefail
source .venv/bin/activate
cd ../semver
python -m build
cd -
- if: matrix.os != 'windows-latest'
run: uv run -m pip install --no-deps jupyter==1.0.0 # example package that uses metadata.json
- run: uv run -m coverage run --branch --source . -m unittest -v
- run: uv run -m coverage run --append --branch --source . -m unittest -v test.test_version
env:
LOGGING_LEVEL: critical
- run: uv run -m coverage run --append --branch --source . -m pip install --no-build-isolation --no-binary ebrains-drive ebrains-drive==0.6.0
- run: uv run -m coverage report --show-missing
- run: uv run -m codecov --token ${{ secrets.CODECOV_TOKEN }}