Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
Replaces: Travis CI -> GitHub Actions
Browse files Browse the repository at this point in the history
Fix #22
  • Loading branch information
cuducos committed Sep 6, 2021
1 parent 57ea9c1 commit 889346f
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 13 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Tests
on: [push, pull_request]
jobs:

test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.8
- 3.7
- 3.6
flask-version:
- 1
name: Python ${{ matrix.python-version }} & Flask ${{ matrix.flask-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
python -m venv .venv/
.venv/bin/pip install poetry
- name: Install dependencies
run: |
.venv/bin/pip install --upgrade pip
.venv/bin/poetry install
- name: Run tox
run: .venv/bin/poetry run tox -e py${{ matrix.python-version }}-flask${{ matrix.flask-version }}
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Development Status: Alpha](https://img.shields.io/pypi/status/Flask-AlchemyDumps.svg?style=flat)](https://pypi.python.org/pypi/Flask-AlchemyDumps)
[![Python Version](https://img.shields.io/pypi/pyversions/Flask-AlchemyDumps.svg)](https://pypi.python.org/pypi/Flask-AlchemyDumps)
[![Travis CI](https://img.shields.io/travis/cuducos/alchemydumps.svg?style=flat)](https://travis-ci.org/cuducos/alchemydumps)
[![GitHub Actions](https://github.com/cuducos/Flask-AlchemyDumps/actions/workflows/tests.yml/badge.svg)](https://github.com/cuducos/Flask-AlchemyDumps/actions/workflows/tests.yml)
[![Coverage Status](https://coveralls.io/repos/github/cuducos/alchemydumps/badge.svg?branch=master)](https://coveralls.io/github/cuducos/alchemydumps?branch=master)


Expand Down Expand Up @@ -294,4 +294,4 @@ poetry run black . --check
poetry run flake8 flask_alchemydumps/ tests/
```

If you wanna cover all supported Python version, you need them installed and available via [`pyenv`](https://github.com/pyenv/pyenv). Then just `poetry run tox`.
If you wanna cover all supported Python version, you need them installed and available via [`pyenv`](https://github.com/pyenv/pyenv). Then just `poetry run tox`.
11 changes: 9 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[tox]
envlist = py36, py37, py38
envlist = py{3.6,3.7,3.8}-flask{1}
isolated_build = True

[testenv]
deps = nose
whitelist_externals = poetry
setenv =
FLASK_APP = tests/integration/app.py
deps =
flask1: flask>=1.0.0,<2.0.0
commands =
poetry install
poetry run black . --check
Expand All @@ -20,3 +21,9 @@ deps =
commands =
poetry run nosetests --with-cover --cover-package=flask_alchemydumps
coveralls

[gh-actions]
python =
3.6: py3.6
3.7: py3.7
3.8: py3.8

0 comments on commit 889346f

Please sign in to comment.