-
Notifications
You must be signed in to change notification settings - Fork 24
42 lines (35 loc) · 955 Bytes
/
CI.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
name: CI
on:
push:
branches: [ main, v1.0]
pull_request:
branches: [ main, v1.0]
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
ci:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install --upgrade pip wheel
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
- name: Install dependencies
run: |
pip install jax jaxlib tensorflow
- name: Test with pytest
run: |
pip install -e .
pytest tests/