-
Notifications
You must be signed in to change notification settings - Fork 88
62 lines (51 loc) · 1.33 KB
/
Copy pathpipe.yml
File metadata and controls
62 lines (51 loc) · 1.33 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
name: pipeline
on:
pull_request:
branches:
- master
push:
branches:
- master
tags:
- '*'
jobs:
test:
name: pipe
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
sudo apt update -y && sudo apt install -y pandoc
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Check documentation
run: |
sphinx-build docs/ docs/.build -b html -v --color -T -W
- name: "Run Tests"
run: |
coverage run -m pytest --doctest-modules chaospy/ tests/ README.rst
coverage xml coverage.xml
- name: "Check formatting"
run: |
black --check chaospy/
- name: "Upload python coverage"
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.codecov_token }}
files: coverage.xml
flags: python
fail_ci_if_error: true
- name: "Build Wheels"
run: python -m build
- uses: pypa/gh-action-pypi-publish@v1.4.2
if: startsWith(github.ref, 'refs/tags/')
with:
user: __token__
password: ${{ secrets.pypi_password }}
- name: Verify clean directory
run: git diff --exit-code