Unverified Commit 867777c4 authored by Diederik van der Boor's avatar Diederik van der Boor
Browse files

Replace Travis with GitHub Actions

parent 03ded1ab
name: CI Testing
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
name: "Python ${{ matrix.python }} Django ${{ matrix.django }}"
runs-on: ubuntu-latest
strategy:
# max-parallel: 8 # default is max available
fail-fast: false
matrix:
include:
# Django 2.2
- django: "2.2"
python: "3.6"
# Django 3.1
- django: "3.1"
python: "3.6"
# Django 3.2
- django: "3.2"
python: "3.6"
# Django 4.0
- django: "4.0b1"
python: "3.10"
steps:
- name: Install gettext
run: sudo apt-get install -y gettext
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Packages
run: |
python -m pip install -U pip
python -m pip install "Django~=${{ matrix.django }}" django-storages boto3 codecov -e .[tests]
- name: Run Tests
run: |
echo "Python ${{ matrix.python }} / Django ${{ matrix.django }}"
coverage run --rcfile=.coveragerc runtests.py
codecov
continue-on-error: ${{ contains(matrix.django, '4.0') }}
sudo: false
language: python
cache: pip
python:
- '3.8'
env:
- DJANGO="django~=2.2"
- DJANGO="django~=3.0"
- DJANGO="django~=3.1"
- DJANGO="django~=3.2"
- DJANGO="https://github.com/django/django/archive/main.tar.gz"
matrix:
allow_failures:
- env: DJANGO="https://github.com/django/django/archive/main.tar.gz"
before_install:
- pip install codecov
install:
- pip install $DJANGO django-storages boto3 -e .
script:
- coverage run --rcfile=.coveragerc runtests.py
after_success:
- codecov
branches:
only:
- master
notifications:
email:
recipients:
- travis@edoburu.nl
on_success: never
on_failure: always
slack:
secure: WWNa4MHf50AOybB+XW9UKXCk/9Q8r++Jc4xTdEib43rj4odH9wxIaTRrzAbbpo3EO2gYuLgq6mMbaIZPD5l2UmgSnyuIbeYAAKIQblT+8XMamtXwnSS5j9vfBXYdj54rTlh+jKwEMW/JiQKl+SQpfQ2v1NMvYO63m89Ev9vXvcU=
on_success: never
on_failure: always
.. image:: https://img.shields.io/travis/edoburu/django-private-storage/master.svg?branch=master
:target: http://travis-ci.org/edoburu/django-private-storage
django-private-storage
======================
.. image:: https://github.com/edoburu/django-private-storage/actions/workflows/tests.yaml/badge.svg?branch=master
:target: https://github.com/edoburu/django-private-storage/actions/workflows/tests.yaml
.. image:: https://img.shields.io/pypi/v/django-private-storage.svg
:target: https://pypi.python.org/pypi/django-private-storage/
.. image:: https://img.shields.io/pypi/l/django-private-storage.svg
......@@ -7,9 +10,6 @@
.. image:: https://img.shields.io/codecov/c/github/edoburu/django-private-storage/master.svg
:target: https://codecov.io/github/edoburu/django-private-storage?branch=master
django-private-storage
======================
This module offers a private media file storage,
so user uploads can be protected behind a login.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment