-
Notifications
You must be signed in to change notification settings - Fork 18
55 lines (46 loc) · 1.55 KB
/
ci.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
55
name: Portal CI
on: [push, pull_request]
jobs:
build:
# Available versions:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
# Uniprot's SSL setup is not sufficient for
# the latest Ubuntu security settings.
# So, use an older Ubuntu for now.
#
# More details:
# https://github.com/ebi-uniprot/uniprot-rest-api/issues/23
# https://github.com/Ensembl/ensembl-rest/issues/427
runs-on: ubuntu-22.04
strategy:
matrix:
version:
- '3.9'
# TODO: Python 3.10 doesn't work for me, locally:
# 'pip install requirements-dev.txt' fails...
# Something wrong with typed-ast?
# ... but if it works on CI, great!
#
# Python 3.9 does work for me locally:
# Will wait for someone else to have trouble with 3.10 before investing any time here.
steps:
- uses: actions/checkout@v2
# with:
# submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.version }}
architecture: 'x64'
- run: sudo apt-get install parallel
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests parameterized
- run: pip install -r requirements.txt
- run: pip install -r requirements-dev.txt
- name: Run test script
run: ./test.sh
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
# GH_ACTIONS: true