-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (50 loc) · 1.78 KB
/
bootstrap.yaml
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
name: Bootstrap
on:
push:
branches: [bootstrap]
pull_request:
branches: [bootstrap]
jobs:
build:
name: python ${{ matrix.python-version }} on ${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {python-version: "3.10", os: ubuntu-latest}
steps:
- uses: actions/checkout@v2
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install ebcc
run: |
python -m pip install wheel
python -m pip install -e .[dev]
- name: Install dependencies
run: |
python -m pip install git+https://github.com/obackhouse/albert@master
python -m pip install git+https://github.com/edeprince3/pdaggerq@master
python -m pip install git+https://github.com/tschijnmo/drudge@master
python -m pip install git+https://github.com/obackhouse/gristmill@master
python -m pip install git+https://github.com/tschijnmo/DummyRDD@master
- name: Bootstrap
run: |
git checkout bootstrap
chmod +x .github/workflows/bootstrap_all.sh
cd ebcc/codegen && ./../../.github/workflows/bootstrap_all.sh
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -b bootstrap_ci
git add *.py
git commit -m "Bootstrap via ${{ github.sha }}"
git push origin bootstrap_ci
- name: Run unit tests
run: |
python -m pip install pytest
pytest