mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2025-10-21 17:50:35 +00:00
commit
2b5a43d34e
23
.github/workflows/lint.yml
vendored
23
.github/workflows/lint.yml
vendored
@ -1,23 +0,0 @@
|
|||||||
name: Lint
|
|
||||||
on:
|
|
||||||
- push
|
|
||||||
- pull_request
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, windows-latest]
|
|
||||||
python-version: ["3.10"]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install tox tox-gh-actions
|
|
||||||
- name: Lint with tox
|
|
||||||
run: tox
|
|
||||||
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest]
|
||||||
python-version: ["3.10"]
|
python-version: ["3.10"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -18,6 +18,6 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install django
|
pip install tox tox-gh-actions
|
||||||
- name: Lint with tox
|
- name: Test with tox
|
||||||
run: python manage.py test
|
run: tox
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
from django.contrib import admin
|
# from django.contrib import admin
|
||||||
|
|
||||||
# Register your models here.
|
# Register your models here.
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
from django.db import models
|
# from django.db import models
|
||||||
|
|
||||||
# Create your models here.
|
# Create your models here.
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
from django.test import TestCase
|
# from django.test import TestCase
|
||||||
|
|
||||||
# Create your tests here.
|
# Create your tests here.
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
from django.shortcuts import render
|
# from django.shortcuts import render
|
||||||
|
|
||||||
# Create your views here.
|
# Create your views here.
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = FOSSDB-Web
|
name = FOSSDB-Web
|
||||||
description = Open-Source Software Database Website
|
description = Free and Open-Source Software Database Website
|
||||||
author = Kristofers Solo
|
author = Kristofers Solo
|
||||||
license = GPL3
|
license = GPL3
|
||||||
license_files = LICENSE
|
license_files = LICENSE
|
||||||
|
|||||||
11
tox.ini
11
tox.ini
@ -1,20 +1,13 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 3.8.0
|
minversion = 3.8.0
|
||||||
envlist = py310, flake8, mypy
|
envlist = django, flake8, mypy
|
||||||
isolated_build = true
|
isolated_build = true
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
3.10: py310, mypy, flake8
|
3.10: py310, mypy, flake8
|
||||||
|
|
||||||
; [testenv]
|
[testenv:django]
|
||||||
; setenv =
|
|
||||||
; PYTHONPATH = {toxinidir}
|
|
||||||
; deps =
|
|
||||||
; -r{toxinidir}/requirements_dev.txt
|
|
||||||
|
|
||||||
|
|
||||||
[testenv]
|
|
||||||
basepython = python3.10
|
basepython = python3.10
|
||||||
deps = django
|
deps = django
|
||||||
commands = python manage.py test
|
commands = python manage.py test
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user