Skip to content

Commit

Permalink
Port from Travis to Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Mar 26, 2021
1 parent 120eaec commit f79a307
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 14 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:11

strategy:
matrix:
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Python ${{ matrix.python-version }}
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Lint (black)
- uses: psf/black@stable
with:
args: ". --check"

- name: Install dependencies
run: |
pip install -r requirements-test.txt
pip install -r requirements-cli.txt
pip install -r requirements-build.txt
pip install coveralls
- name: Run tests
run: |
psql -c 'create database conbench_test;' -U postgres
coverage run --source conbench -m pytest conbench/tests/
- name: Publish coverage
run: |
coveralls
14 changes: 0 additions & 14 deletions .github/workflows/black.yml

This file was deleted.

0 comments on commit f79a307

Please sign in to comment.