-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (48 loc) · 1.15 KB
/
test.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Python CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Specify your Python version, like '3.9'
- name: Install dependencies
working-directory: python/
run: |
python -m pip install --upgrade pip
pip install .
pip install .[dev]
- name: Check formatting
working-directory: python/
run: |
invoke check
- name: Run tests
working-directory: python/
env:
PYTHONPATH: "${{ github.workspace }}/python/src"
run: |
pytest
- name: Check build
working-directory: python/
env:
PYTHONPATH: "${{ github.workspace }}/python/src"
run: |
pip install twine
python setup.py sdist bdist_wheel
twine check dist/*
- name: Run the binary
working-directory: python/
env:
PYTHONPATH: "${{ github.workspace }}/python/src"
run: |
metaprompt