-
Notifications
You must be signed in to change notification settings - Fork 18
41 lines (40 loc) · 1.08 KB
/
pipeline.yaml
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
name: Pipeline
on: [push, pull_request]
jobs:
tests:
strategy:
matrix:
blender: ['latest']
os: [ubuntu-latest]
pyversion: ['3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyversion }}
- uses: Moguri/setup-blender@b856971137e9cbd32ee49f9f20ca3f1637896c44
with:
blender-version: ${{ matrix.blender }}
- name: Run Tests
run: |
python -m pip install -e .[test]
python -m pytest
build_publish:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Build package
run: |
python -m pip install --upgrade build
python -m build
- name: Publish package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}