-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (34 loc) · 1.06 KB
/
test-pr.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: test-pr
on:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout Pyramid-Scheme
run: git submodule update --init # --recursive
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh && uv --version
- name: Install test dependencies
run: |
uv pip install --system --upgrade pip wheel setuptools
uv pip install --system --upgrade coverage pytest black mypy
- name: Install psll
run: uv pip install --system "psll @ ."
- name: Check with black
run: black --preview --check --verbose .
- name: Check with mypy
run: mypy --config-file ./mypy.ini psll
- name: Run tests (PR)
run: bash test.sh -e