-
Notifications
You must be signed in to change notification settings - Fork 0
124 lines (105 loc) · 4.33 KB
/
Copy pathci.yml
File metadata and controls
124 lines (105 loc) · 4.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: Continuous Integration
on: [push, pull_request]
env:
PROJECT_NAME: taped
jobs:
validation:
name: Validation
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.12"]
steps:
# - name: Install system dependencies
# run: |
# sudo apt update -y
# sudo apt install -y curl gcc git
# sudo apt install -y software-properties-common
# sudo apt install -y libffi-dev libssl-dev libbz2-dev
# sudo apt install -y portaudio19-dev libsndfile-dev
# ls /usr/include/portaudio.h || echo "PortAudio header missing!"
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Necessary for 3.12, since setuptools was removed there
- name: Install setuptools
run: python -m pip install setuptools
- name: Install Dependencies
uses: i2mint/isee/actions/install-packages@master
with:
dependency-files: setup.cfg
apt-packages: curl gcc git software-properties-common libffi-dev libssl-dev libbz2-dev portaudio19-dev libsndfile-dev
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} # Uncomment this if you need to install private dependencies from source
- name: Format Source Code
uses: i2mint/isee/actions/format-source-code@master
- name: Pylint Validation
uses: i2mint/isee/actions/pylint-validation@master
with:
root-dir: ${{ env.PROJECT_NAME }}
enable: missing-module-docstring
ignore: tests,examples,scrap
- name: Pytest Validation
uses: i2mint/isee/actions/pytest-validation@master
with:
root-dir: ${{ env.PROJECT_NAME }}
paths-to-ignore: examples,scrap
publish:
name: Publish
if: "!contains(github.event.head_commit.message, '[skip ci]') && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')"
needs: validation
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Necessary for 3.12, since setuptools was removed there
- name: Install setuptools
run: python -m pip install setuptools
- name: Format Source Code
uses: i2mint/isee/actions/format-source-code@master
- name: Update Version Number
uses: i2mint/isee/actions/bump-version-number@master
- name: Package
uses: i2mint/isee/actions/package@master
# Uncomment this if you need to install private dependencies from source
# with:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Publish
uses: i2mint/isee/actions/publish@master
with:
pypi-username: ${{ secrets.PYPI_USERNAME }}
pypi-password: ${{ secrets.PYPI_PASSWORD }}
- name: Check In
uses: i2mint/isee/actions/check-in@master
with:
commit-message: "**CI** Formatted code + Updated version number and documentation. [skip ci]"
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Tag Repository With New Version Number
uses: i2mint/isee/actions/tag-repository@master
with:
tag: $VERSION
github-pages:
name: Publish GitHub Pages
if: "!contains(github.event.head_commit.message, '[skip ci]') && github.ref == 'refs/heads/master'"
needs: publish
runs-on: ubuntu-latest
steps:
- name: Install Dependencies (for GitHub Pages Processing)
uses: i2mint/isee/actions/install-packages@master
with:
apt-packages: curl gcc git software-properties-common libffi-dev libssl-dev libbz2-dev portaudio19-dev libsndfile-dev
- uses: i2mint/epythet/actions/publish-github-pages@master
with:
# IMPORTANT Note: You don't need to specify GITHUB_TOKEN in your repo secrets.
# GITHUB_TOKEN is special & automatically provided to your workflow run.
github-token: ${{ secrets.GITHUB_TOKEN }}