-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (47 loc) · 1.32 KB
/
tests.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
name: Tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: ["main"]
push:
branches: ["main"]
tags: ["v*"]
schedule:
# run test automatically every day at 3
- cron: "0 3 * * *"
defaults:
run:
shell: bash -el {0}
jobs:
tests:
name: Tests (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", # "macos-latest", "windows-latest"
]
python-version: ["3.10", "3.11", "3.12", "3.13"]
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
miniforge-version: latest
- name: Install
run: python -m pip install -e .\[tests-all\]
- name: List versions
run: |
conda list
python -c "import asyncmd; print('asyncmd version is: ', asyncmd.__version__)"
- name: Unit tests
env:
PY_COLORS: "1"
run: pytest -vv --cov=asyncmd --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}