Skip to content

Commit

Permalink
Merge pull request #223 from wallabag/github-actions
Browse files Browse the repository at this point in the history
Ditch Travis to use GitHub Actions
  • Loading branch information
j0k3r authored Nov 27, 2020
2 parents 0e7fa2b + 7e43f2a commit d619c63
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 27 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "CI"

on:
pull_request:
branches:
- "master"
push:
branches:
- "master"

jobs:
test:
name: "Testing with database: ${{ matrix.database }}"
runs-on: "ubuntu-latest"

strategy:
fail-fast: false
matrix:
database:
- "default"
- "sqlite"
- "mariadb"
- "postgresql"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"
with:
fetch-depth: 2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.5

- name: "Build image"
run: docker-compose -f tests/docker-compose.${{ matrix.database }}.yml build

- name: "Run image"
run: docker-compose -f tests/docker-compose.${{ matrix.database }}.yml up -d

- name: "Install dependencies"
run: |
pip install pytest
pip install requests
- name: "Check running instance"
run: docker ps

- name: "Wait 60s"
run: sleep 60

- name: "Run tests"
run: py.test tests/
26 changes: 0 additions & 26 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
@@ -1,6 +1,6 @@
# What is wallabag?

[![Build Status](https://travis-ci.org/wallabag/docker.svg?branch=master)](https://travis-ci.org/wallabag/docker)
![CI](https://github.com/wallabag/docker/workflows/CI/badge.svg)
[![Docker Stars](https://img.shields.io/docker/stars/wallabag/wallabag.svg?maxAge=2592000)](https://hub.docker.com/r/wallabag/wallabag/)
[![Docker Pulls](https://img.shields.io/docker/pulls/wallabag/wallabag.svg?maxAge=2592000)](https://hub.docker.com/r/wallabag/wallabag/)

Expand Down

0 comments on commit d619c63

Please sign in to comment.