-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (39 loc) · 1.29 KB
/
tests.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
name: Evaluate code syntax and correctness
on: [push, pull_request]
jobs:
pre-commit_and_pytest:
name: Run pre-commit and pytest
strategy:
matrix:
os: [ubuntu-latest, Windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11.x"
- uses: pre-commit/[email protected]
name: Run pre-commit
- name: Install pypa/build
run: >-
python3 -m
pip install
--upgrade
build
- name: Initialize submodules
run: |
git submodule update --init
- name: Build SDist and wheel
run: python3 -m build
- name: Install AlphaPeel
run: pip install dist/AlphaPeel-1.1.3-py3-none-any.whl
- name: Install pytest
run: |
pip install pytest
pip install pytest-benchmark
- name: Run pytest
run: |
pytest