-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (32 loc) · 1.05 KB
/
pip.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
name: Pip
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and requirements
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install setuptools wheel twine
- name: Install boost
id: install-boost
run: |
bash .github/workflows/scripts/install_boost.sh
echo "BOOST_ROOT=${{runner.workspace}}/dlplan/boost_1_82_0" >> "$GITHUB_OUTPUT"
- name: Build and install
run: python -m pip install --verbose .[test]
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
- name: Test
run: pytest api/python