@@ -3,36 +3,35 @@ name: dac actions
33on :
44 push :
55 branches :
6- - ' * '
6+ - " * "
77 tags :
8- - ' * '
8+ - " * "
99
1010jobs :
11-
1211 check-style :
1312 runs-on : ubuntu-latest
1413 steps :
15- - name : Checkout 🔖
16- uses : actions/checkout@v3
17- with :
18- fetch-depth : 1
19- - name : Setup python 🐍
20- uses : actions/setup-python@v4
21- with :
22- python-version : ' 3.12'
23- - name : Setup cache 💾
24- uses : actions/cache@v3
25- with :
26- path : ~/.cache/pre-commit
27- key : pre-commit
28- - name : Prepare pre-commit 🙆♂️👗
29- run : |
30- python -m venv venv || . venv/bin/activate
31- pip install -U pip wheel setuptools pre-commit
32- pre-commit install
33- - name : Run pre-commit 👗🚀
34- run : |
35- pre-commit run --all-files
14+ - name : Checkout 🔖
15+ uses : actions/checkout@v3
16+ with :
17+ fetch-depth : 1
18+ - name : Setup python 🐍
19+ uses : actions/setup-python@v4
20+ with :
21+ python-version : " 3.12"
22+ - name : Setup cache 💾
23+ uses : actions/cache@v3
24+ with :
25+ path : ~/.cache/pre-commit
26+ key : pre-commit
27+ - name : Prepare pre-commit 🙆♂️👗
28+ run : |
29+ python -m venv venv || . venv/bin/activate
30+ pip install -U pip wheel setuptools pre-commit
31+ pre-commit install
32+ - name : Run pre-commit 👗🚀
33+ run : |
34+ pre-commit run --all-files
3635
3736 test :
3837 runs-on : " ${{ matrix.os }}"
@@ -41,60 +40,60 @@ jobs:
4140 os : ["ubuntu-latest"]
4241 version : ["3.9", "3.10", "3.11"]
4342 steps :
44- - name : Checkout 🔖
45- uses : actions/checkout@v3
46- with :
47- fetch-depth : 1
48- - name : Setup python 🐍
49- uses : actions/setup-python@v4
50- with :
51- python-version : " ${{ matrix.version }}"
52- - name : Prepare tests 🙆♂️🔬
53- run : |
54- python -m venv venv || . venv/bin/activate
55- pip install -U pip wheel setuptools
56- pip install -r requirements-test.txt
57- - name : Run tests 🔬🚀
58- run : |
59- pytest test --run-slow
43+ - name : Checkout 🔖
44+ uses : actions/checkout@v3
45+ with :
46+ fetch-depth : 1
47+ - name : Setup python 🐍
48+ uses : actions/setup-python@v4
49+ with :
50+ python-version : " ${{ matrix.version }}"
51+ - name : Prepare tests 🙆♂️🔬
52+ run : |
53+ python -m venv venv || . venv/bin/activate
54+ pip install -U pip wheel setuptools
55+ pip install -r requirements-test.txt
56+ - name : Run tests 🔬🚀
57+ run : |
58+ pytest test --run-slow
6059
6160 docs :
6261 needs : [test, check-style]
6362 if : ${{ github.ref == 'refs/heads/main' }}
6463 runs-on : ubuntu-latest
6564 steps :
66- - name : Checkout 🔖
67- uses : actions/checkout@v3
68- - name : Deploy docs
69- uses : mhausenblas/mkdocs-deploy-gh-pages@master
70- env :
71- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72- CONFIG_FILE : mkdocs.yml
73- REQUIREMENTS : requirements-docs.txt
65+ - name : Checkout 🔖
66+ uses : actions/checkout@v3
67+ - name : Deploy docs
68+ uses : mhausenblas/mkdocs-deploy-gh-pages@master
69+ env :
70+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71+ CONFIG_FILE : mkdocs.yml
72+ REQUIREMENTS : requirements-docs.txt
7473
7574 pypi-release :
7675 needs : [test, check-style]
7776 if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
7877 runs-on : ubuntu-latest
7978 steps :
80- - name : Checkout 🔖
81- uses : actions/checkout@v3
82- with :
83- fetch-depth : 1
84- - name : Setup python 🐍
85- uses : actions/setup-python@v4
86- with :
87- python-version : " 3.12"
88- - name : Prepare release 🙆♂️📦test
89- run : |
90- python -m venv venv || . venv/bin/activate
91- pip install -U pip wheel setuptools build twine
92- - name : Build 🛠️📦
93- run : |
94- python -m build
95- - name : Release 📦🚀
96- env :
97- TWINE_USERNAME : ${{ secrets.TWINE_USERNAME }}
98- TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
99- run : |
100- python -m twine upload dist/*
79+ - name : Checkout 🔖
80+ uses : actions/checkout@v3
81+ with :
82+ fetch-depth : 1
83+ - name : Setup python 🐍
84+ uses : actions/setup-python@v4
85+ with :
86+ python-version : " 3.12"
87+ - name : Prepare release 🙆♂️📦test
88+ run : |
89+ python -m venv venv || . venv/bin/activate
90+ pip install -U pip wheel setuptools build twine
91+ - name : Build 🛠️📦
92+ run : |
93+ python -m build
94+ - name : Release 📦🚀
95+ env :
96+ TWINE_USERNAME : ${{ secrets.TWINE_USERNAME }}
97+ TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
98+ run : |
99+ python -m twine upload dist/*
0 commit comments