FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cmd2/.github/workflows/tests.yml at main · python-cmd2/cmd2 · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-cmd2
/
cmd2
Public
Notifications
You must be signed in to change notification settings
Fork
132
Star
686
Code
Issues
1
Pull requests
2
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cmd2
/
.github
/
workflows
/
tests.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
57 lines (52 loc) · 1.7 KB
Breadcrumbs
cmd2
/
.github
/
workflows
/
tests.yml
Copy path
File metadata and controls
57 lines (52 loc) · 1.7 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
For documentation on GitHub Actions Workflows, see:
#
https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name
:
Tests
on
:
pull_request
:
types
:
[opened, synchronize, reopened]
push
:
branches
:
[main]
jobs
:
tests
:
strategy
:
matrix
:
os
:
[ubuntu-latest, macos-latest, windows-latest]
python-version
:
["3.11", "3.12", "3.13", "3.14", "3.14t", "3.15-dev"]
fail-fast
:
false
runs-on
:
${{ matrix.os }}
defaults
:
run
:
shell
:
bash
steps
:
-
name
:
Check out
uses
:
actions/checkout@v7.0.1
with
:
fetch-depth
:
0
#
Needed for setuptools_scm to work correctly
-
name
:
Install uv
uses
:
astral-sh/setup-uv@v7
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v7
with
:
python-version
:
${{ matrix.python-version }}
allow-prereleases
:
true
-
name
:
Install the project
run
:
uv sync --all-extras --dev
-
name
:
Run tests
run
:
uv run python -Xutf8 -m pytest --cov --cov-config=pyproject.toml --cov-report=xml tests
-
name
:
Upload test results to Codecov
if
:
${{ !cancelled() }}
uses
:
codecov/codecov-action@v7
with
:
flags
:
python${{ matrix.python-version }}
name
:
codecov-umbrella-test-results
report_type
:
test_results
token
:
${{ secrets.CODECOV_TOKEN }}
-
name
:
Upload coverage to Codecov
uses
:
codecov/codecov-action@v7
with
:
env_vars
:
OS,PYTHON
fail_ci_if_error
:
true
flags
:
unittests
name
:
codecov-umbrella
token
:
${{ secrets.CODECOV_TOKEN }}
verbose
:
true
Back
|
FazBrowse Home
|
New Git URL