Merge pull request #8 from kristoferssolo/tests

Fix tests cases
This commit is contained in:
Kristofers Solo 2023-04-10 14:05:58 +03:00 committed by GitHub
commit 2b5a43d34e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 41 deletions

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,3 @@
from django.contrib import admin
# from django.contrib import admin
# Register your models here.

View File

@ -1,3 +1,3 @@
from django.db import models
# from django.db import models
# Create your models here.

View File

@ -1,3 +1,3 @@
from django.test import TestCase
# from django.test import TestCase
# Create your tests here.

View File

@ -1,3 +1,3 @@
from django.shortcuts import render
# from django.shortcuts import render
# Create your views here.

View File

@ -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
View File

@ -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