Skip to content

Commit

Permalink
Migrate to pipenv and Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ricobl committed Dec 3, 2021
1 parent 1b76020 commit eba5225
Show file tree
Hide file tree
Showing 8 changed files with 300 additions and 32 deletions.
Binary file added .coverage
Binary file not shown.
2 changes: 2 additions & 0 deletions .coveragerc
@@ -0,0 +1,2 @@
[run]
relative_files = True
58 changes: 58 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,58 @@
name: Run tests

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

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9"]
django-version: ["3.2"]

steps:
- name: Checkout repo
uses: actions/checkout@v2

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

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependecies
uses: VaultVulp/action-pipenv@v2.0.1
with:
command: install --dev

- name: Install Django
run: pip install -q Django~=${{ matrix.django-version }}

- name: Test
uses: VaultVulp/action-pipenv@v2.0.1
with:
command: run coverage-test

- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Unit Test

coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -9,7 +9,7 @@ test: clean
@./manage.py test

install:
@pip install -r dev_requirements.txt
@pipenv install --dev

patch:
@$(eval BUMP := 'patch')
Expand Down
21 changes: 21 additions & 0 deletions Pipfile
@@ -0,0 +1,21 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]
django-thumbor = {editable = true, path = "."}
bumpversion = "*"
coverage = "*"
coveralls = "*"
django-nose = "*"
mock = "*"

[requires]
python_version = "3.9"

[scripts]
test = "make test"
coverage-test = "./manage.py test --with-coverage"
218 changes: 218 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions dev_requirements.txt

This file was deleted.

0 comments on commit eba5225

Please sign in to comment.