-
Notifications
You must be signed in to change notification settings - Fork 29
39 lines (37 loc) · 1.01 KB
/
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
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
jobs:
test-linux:
name: Pytest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
runs-on: ubuntu-latest
env:
SCALABRAD_VERSION: '0.8.3'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '8'
- name: Install scalabrad
run: |
bash scripts/test/install-scalabrad.sh
echo "PATH=$PATH:$HOME/scalabrad-$SCALABRAD_VERSION/bin/" >> $GITHUB_ENV
- name: Install dependencies
run: |
sed 's/>=/==/' requirements.txt > exact_requirements.txt
pip install -r requirements.txt
pip install .
pip install pytest coveralls
- name: Run python tests
run: scripts/test/test.sh