-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.18 KB
/
pull_request.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
47
48
49
50
name: In pull request
on:
pull_request:
branches:
- main
jobs:
check_python_linting:
name: Ruff Linting & Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
src: "./"
version: 0.3.3
- uses: chartboost/ruff-action@v1
with:
src: "./"
version: 0.3.3
args: 'format --check'
test:
name: Run unit and integration tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install user's dependencies
run: pip install -r requirements.txt
- name: Install test dependencies
run: pip install -r requirements-test.txt
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Run Test
run: |
python -m unittest discover -s tabpfn_client/tests -t tabpfn_client/tests