-
Notifications
You must be signed in to change notification settings - Fork 31
47 lines (41 loc) · 1.29 KB
/
anytask.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Anytask tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
services:
minio:
image: fclairamb/minio-github-actions
ports:
- 9000:9000
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install pip>=9.0.1
pip install --upgrade flake8 'setuptools-scm==5.0.2'
pip install -r requirements_local.txt
sudo apt-get install -y p7zip-full tar xz-utils bzip2 gzip gettext
- name: Lint with flake8
run: |
cd anytask
flake8 --version
flake8
- name: Create MinIO test bucket
run: |
s3cmd --no-ssl --access_key minioadmin --secret_key minioadmin \
--host localhost:9000 --host-bucket localhost:9000 \
mb s3://anytask-test-s3
- name: Run django tests
run: |
cd anytask
python manage.py compilemessages
python manage.py test