File tree Expand file tree Collapse file tree 1 file changed +78
-0
lines changed
Expand file tree Collapse file tree 1 file changed +78
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ python-version : ["3.10", "3.11", "3.12"]
19+
20+ env :
21+ MPLBACKEND : Agg
22+ MPLCONFIGDIR : /tmp/matplotlib
23+
24+ steps :
25+ - name : Check out repository
26+ uses : actions/checkout@v4
27+
28+ - name : Set up Python
29+ uses : actions/setup-python@v5
30+ with :
31+ python-version : ${{ matrix.python-version }}
32+ cache : pip
33+ cache-dependency-path : |
34+ pyproject.toml
35+ requirements.txt
36+
37+ - name : Upgrade pip
38+ run : python -m pip install --upgrade pip
39+
40+ - name : Install project and dev dependencies
41+ run : pip install -e ".[dev]"
42+
43+ - name : Run Ruff
44+ run : ruff check .
45+
46+ - name : Run tests
47+ run : pytest
48+
49+ build :
50+ runs-on : ubuntu-latest
51+ env :
52+ MPLBACKEND : Agg
53+ MPLCONFIGDIR : /tmp/matplotlib
54+
55+ steps :
56+ - name : Check out repository
57+ uses : actions/checkout@v4
58+
59+ - name : Set up Python
60+ uses : actions/setup-python@v5
61+ with :
62+ python-version : " 3.12"
63+ cache : pip
64+ cache-dependency-path : |
65+ pyproject.toml
66+ requirements.txt
67+
68+ - name : Upgrade pip
69+ run : python -m pip install --upgrade pip
70+
71+ - name : Install build tooling
72+ run : pip install build twine
73+
74+ - name : Build distributions
75+ run : python -m build
76+
77+ - name : Check distribution metadata
78+ run : twine check dist/*
You can’t perform that action at this time.
0 commit comments