forked from dehnert/squaresdb
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1.16 KB
/
main.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
name: lint and test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install libxmlsec1-dev make python3-virtualenv
virtualenv --python=python3 venv
. venv/bin/activate
- name: install squaresdb
run: |
pwd; ls -l
. venv/bin/activate
pip install -e .[dev]
- name: dev setup
run: |
. venv/bin/activate
squaresdb/utils/install.py --email testing@mit.edu
- name: run tests
run: |
. venv/bin/activate
make
# The CircleCI version stores artifacts, but doesn't obviously
# create any?
# https://docs.github.com/en/actions/migrating-to-github-actions/migrating-from-circleci-to-github-actions#persisting-data-between-jobs