-
Notifications
You must be signed in to change notification settings - Fork 53
46 lines (38 loc) · 1.32 KB
/
build-test-lint.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
45
46
name: Python Build, Lint
on:
push:
jobs:
build-test-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout xero-python repo
uses: actions/checkout@v4
with:
repository: XeroAPI/xero-python
path: xero-python
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.8'
cache: 'pip'
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install black
sudo pip install flake8
pip install -r requirements.txt -r requirements/dev.txt
working-directory: xero-python
- name: Run Flake8
run: flake8 xero_python
working-directory: xero-python
- name: Build package
run: python setup.py sdist
working-directory: xero-python
# - name: Run Test
# run: |
# source venv/bin/activate
# pip install -r requirements/test.txt
# pytest -v
# working-directory: xero-python