This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
59 lines (51 loc) · 1.53 KB
/
main.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
51
52
53
54
55
56
57
58
59
name: Main
on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- master
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
runs-on: [ubuntu-latest]
include:
- python-version: 3.7
runs-on: windows-latest
- python-version: 3.9
runs-on: macos-latest
name: Dev ${{ matrix.python-version }} • ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Build and get requirements
run: pip install .[dev]
- name: Test
run: pytest
preexisting:
name: External FastJet
runs-on: ubuntu-latest
container: python:3.8
steps:
- uses: actions/checkout@v3
- name: Install FastJet
run: apt-get update && apt-get install -y libfastjet-dev libfastjetplugins-dev libfastjettools-dev libcgal-dev
# Build dependencies get --global-option! So install any that have to build first here.
- name: Install deps that need to build
run: pip install "setuptools>=42" "importlib-resources>=1.1" "numpy>=1.13.3" pytest "Cython~=0.29.21" wheel
- name: Build
run: pip install . --no-build-isolation --global-option="build_ext" --global-option="--external-fastjet"
- name: Test
run: pytest