[79668b]: / .github / workflows / build.yml

Download this file

46 lines (33 with data), 839 Bytes

 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
name: build
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
- name: Build package
run: poetry build
- name: Setup testing dependencies
run: |
pip install dist/deduce-*.whl
poetry install --only dev
- name: Test build
run: python -m pytest .
- name: Set up Pypi credentials
run: poetry config pypi-token.pypi ${{ SECRETS.PYPI_TOKEN }}
- name: Publish package
run: poetry publish