-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 1.05 KB
/
ci.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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
# clone the source code containing the package version generation script
- name: Checkout source code
uses: actions/checkout@v2
with:
submodules: true
# make sure python is set up properly
- name: Install Python (with dependencies)
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install pip dependencies
run: |
python -m pip install pip --upgrade
python -m pip install wheel==0.37.1 setuptools==59.6.0
python -m pip install -r ./fast-pysf/requirements.txt
python -m pip install -r ./requirements.txt
- name: Register modules under test
run: |
cd fast-pysf && python -m pip install . && cd ..
python -m pip install .
- name: Run tests
run: python -m pytest tests
- name: Run linter
run: python -m pylint robot_sf