-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (42 loc) · 1.19 KB
/
release.yml
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
name: CD
on:
push:
branches:
- main
- alpha
- beta
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Install semantic-release
run: npm install --global semantic-release @semantic-release/git semantic-release-pypi
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.7
- name: Install requirements
run: make init
- name: Lint with flake8, black and isort
run: make style
- name: Run tests
run: make test
env:
JINA_AUTH_TOKEN: ${{secrets.JINA_AUTH_TOKEN}}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
- name: Install setuptools
run: python -m pip install --upgrade setuptools wheel twine
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.TWINE_PASSWORD }}
run: npx semantic-release