-
Notifications
You must be signed in to change notification settings - Fork 28
41 lines (39 loc) · 977 Bytes
/
python.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: Python
on:
push:
paths:
- python/**
- server/**
- .github/workflows/python.yaml
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
poetry install --no-interaction
pip install .
working-directory: "python"
- name: Install pyteset
run: |
pip install pytest
working-directory: "python"
- name: Run tests
run: |
pytest tests
working-directory: "python"
build:
needs: [ test ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Copy readme
run: cp README.md python/README.md
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
package_directory: "python"