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 }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
os: [ubuntu-latest]
|
||||
python-version: ["3.10"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@ -18,6 +18,6 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install django
|
||||
- name: Lint with tox
|
||||
run: python manage.py test
|
||||
pip install tox tox-gh-actions
|
||||
- name: Test with tox
|
||||
run: tox
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
from django.contrib import admin
|
||||
# from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
from django.db import models
|
||||
# from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
from django.test import TestCase
|
||||
# from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
# from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[metadata]
|
||||
name = FOSSDB-Web
|
||||
description = Open-Source Software Database Website
|
||||
description = Free and Open-Source Software Database Website
|
||||
author = Kristofers Solo
|
||||
license = GPL3
|
||||
license_files = LICENSE
|
||||
|
||||
11
tox.ini
11
tox.ini
@ -1,20 +1,13 @@
|
||||
[tox]
|
||||
minversion = 3.8.0
|
||||
envlist = py310, flake8, mypy
|
||||
envlist = django, flake8, mypy
|
||||
isolated_build = true
|
||||
|
||||
[gh-actions]
|
||||
python =
|
||||
3.10: py310, mypy, flake8
|
||||
|
||||
; [testenv]
|
||||
; setenv =
|
||||
; PYTHONPATH = {toxinidir}
|
||||
; deps =
|
||||
; -r{toxinidir}/requirements_dev.txt
|
||||
|
||||
|
||||
[testenv]
|
||||
[testenv:django]
|
||||
basepython = python3.10
|
||||
deps = django
|
||||
commands = python manage.py test
|
||||
|
||||
Loading…
Reference in New Issue
Block a user