forked from MostAwesomeDude/construct
-
Notifications
You must be signed in to change notification settings - Fork 175
33 lines (31 loc) · 1.07 KB
/
Copy pathmain.yml
File metadata and controls
33 lines (31 loc) · 1.07 KB
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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.9' ]
exclude:
- os: windows-latest
python-version: pypy3.9
name: Python ${{ matrix.python-version }} (${{ matrix.os }})
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "pytest<8.0.0" pytest-benchmark numpy arrow ruamel.yaml cloudpickle lz4
- name: Install cryptography (but not for pypy on windows)
if: ${{ !((matrix.os == 'windows-latest') && (matrix.python-version == 'pypy3.9')) }}
run: |
pip install cryptography
- name: Run tests
run: |
py.test tests/ --benchmark-disable --showlocals --verbose