mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-04-16 15:11:46 +00:00
Compare commits
7 Commits
1c36d04b06
...
09ab269928
| Author | SHA1 | Date | |
|---|---|---|---|
| 09ab269928 | |||
| f4d69446b1 | |||
| 933a48ad3a | |||
| aa0a1b50cd | |||
| 0f4061cf47 | |||
| 52d2f11475 | |||
| 062105e82e |
@@ -1,6 +1,8 @@
|
|||||||
[run]
|
[run]
|
||||||
source =
|
source =
|
||||||
./
|
./
|
||||||
|
plugins =
|
||||||
|
django_coverage_plugin
|
||||||
|
|
||||||
omit =
|
omit =
|
||||||
*/migrations/*
|
*/migrations/*
|
||||||
|
|||||||
20
.github/workflows/django.yml
vendored
20
.github/workflows/django.yml
vendored
@@ -11,13 +11,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
IMGUR_UPLOAD_CLIENT_ID: ${{ secrets.IMGUR_UPLOAD_CLIENT_ID }}
|
IMGUR_UPLOAD_CLIENT_ID: ${{ secrets.IMGUR_UPLOAD_CLIENT_ID }}
|
||||||
IMGUR_UPLOAD_CLIENT_SECRET: ${{ secrets.IMGUR_UPLOAD_CLIENT_SECRET }}
|
IMGUR_UPLOAD_CLIENT_SECRET: ${{ secrets.IMGUR_UPLOAD_CLIENT_SECRET }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||||
strategy:
|
strategy:
|
||||||
max-parallel: 1
|
max-parallel: 1
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8]
|
python-version: [3.8]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pycodestyle
|
pip install pycodestyle coverage coveralls django_coverage_plugin
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
python manage.py collectstatic --noinput
|
python manage.py collectstatic --noinput
|
||||||
- name: Basic Checks
|
- name: Basic Checks
|
||||||
@@ -42,17 +42,7 @@ jobs:
|
|||||||
pycodestyle . --exclude=migrations,importer*
|
pycodestyle . --exclude=migrations,importer*
|
||||||
python manage.py check
|
python manage.py check
|
||||||
python manage.py makemigrations --check --dry-run
|
python manage.py makemigrations --check --dry-run
|
||||||
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: python:3-slim
|
|
||||||
needs: build
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
steps:
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: pip install coverage coveralls
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: coverage run python manage.py test --verbosity=2
|
run: |
|
||||||
- name: Upload coverage data to coveralls.io
|
coverage run manage.py test --verbosity=2
|
||||||
run: coveralls
|
coveralls --service=github
|
||||||
|
|||||||
Reference in New Issue
Block a user