Skip to content

Commit

Permalink
Merge pull request #24 from NaturalHistoryMuseum/josh/ci
Browse files Browse the repository at this point in the history
Switch testing from travis for github actions
  • Loading branch information
jrdh committed Mar 24, 2022
2 parents c6f4698 + c397b0c commit e357c46
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Tests

on:
push:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-18.04

steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Build images
run: docker-compose build

- name: Run tests
run: docker-compose run ckan

- name: Run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: docker-compose run -e COVERALLS_REPO_TOKEN ckan coveralls --service=github

16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# ckanext-gallery

[![Travis](https://img.shields.io/travis/NaturalHistoryMuseum/ckanext-gallery/master.svg?style=flat-square)](https://travis-ci.org/NaturalHistoryMuseum/ckanext-gallery)
[![Tests](https://github.com/NaturalHistoryMuseum/ckanext-gallery/actions/workflows/main.yml/badge.svg)](https://github.com/NaturalHistoryMuseum/ckanext-gallery/actions/workflows/main.yml)
[![Coveralls](https://img.shields.io/coveralls/github/NaturalHistoryMuseum/ckanext-gallery/master.svg?style=flat-square)](https://coveralls.io/github/NaturalHistoryMuseum/ckanext-gallery)
[![CKAN](https://img.shields.io/badge/ckan-2.9.1-orange.svg?style=flat-square)](https://github.com/ckan/ckan)
[![Python](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-blue.svg?style=flat-square)](https://www.python.org/)
Expand Down

0 comments on commit e357c46

Please sign in to comment.