-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (38 loc) · 976 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
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 12 * * 1'
jobs:
build-linux:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
max-parallel: 5
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8 # Start with the earliest version
- name: Install dependencies
run: |
pip install -U pip setuptools
pip install -e.[globus,test]
- name: Start Redis
if: ${{ runner.os == 'Linux' }}
uses: supercharge/[email protected]
- name: Lint with flake8
run: |
flake8 colmena/
- name: Test with pytest
run: |
pytest --cov-config=.coveragerc --cov=colmena colmena/
- name: Coveralls
run: |
pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}