-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.25 KB
/
run-tests.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
43
44
45
46
47
48
49
50
51
52
53
name: Run tests
on:
pull_request:
types:
- ready_for_review
push:
branches:
- '*'
env:
CARGO_TERM_COLOR: always
jobs:
run-tests:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
runs-on: ubuntu-20.04
steps:
- name: Install postgresql server and client
run: |
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib postgresql-client
- name: Start the database server
run: |
sudo systemctl start postgresql.service
- name: Create the valve_postgres database
run: |
sudo su - postgres -c "createuser runner"
sudo su - postgres -c "createdb -O runner valve_postgres"
- name: Check out repository code
uses: actions/checkout@v3
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-gnu
default: true
override: true
- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run tests via Makefile
run: |
make test