Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Apr 25, 2023
1 parent e86ec09 commit 34e8ae0
Show file tree
Hide file tree
Showing 10 changed files with 440 additions and 63 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run Tests

on: [push, pull_request]

jobs:
run-tests:

runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Requirements
run: |
python -c "import sys; print(sys.version)"
pip install -r requirements-dev.txt
python setup.py install
- name: Run tests
run: coverage run -m pytest -s --cov tmdbapis --cov-report xml tests/test*

- name: Codecov coverage reports
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
test*
how to build.txt

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 meisnate12
Copyright (c) 2023 meisnate12

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
31 changes: 30 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Welcome to TMDbAPIs Documentation!
==========================================================

.. image:: https://img.shields.io/github/actions/workflow/status/meisnate12/TMDbAPIs/tests.yml?branch=master&style=plastic
:target: https://github.com/meisnate12/TMDbAPIs/actions/workflows/tests.yml
:alt: Build Testing

.. image:: https://img.shields.io/codecov/c/github/meisnate12/TMDbAPIs?color=greenred&style=plastic
:target: https://codecov.io/gh/meisnate12/TMDbAPIs
:alt: Build Coverage

.. image:: https://img.shields.io/readthedocs/tmdbapis?style=plastic
:target: https://tmdbapis.metamanager.wiki
:alt: Read the Docs
Expand All @@ -21,9 +29,30 @@ Welcome to TMDbAPIs Documentation!
:target: https://github.com/meisnate12/TMDbAPIs/commits/master
:alt: GitHub commits since latest release (by date) for a branch

.. role:: raw-html(raw)
:format: html

:raw-html:`<br />`

.. image:: https://img.shields.io/discord/822460010649878528?color=%2300bc8c&label=Discord&style=plastic
:target: https://discord.gg/NfH6mGFuAB
:alt: Discord

.. image:: https://img.shields.io/reddit/subreddit-subscribers/PlexMetaManager?color=%2300bc8c&label=r%2FPlexMetaManager&style=plastic
:target: https://www.reddit.com/r/PlexMetaManager/
:alt: Reddit

.. image:: https://img.shields.io/readthedocs/plex-meta-manager?color=%2300bc8c&style=plastic
:target: https://tmdbapis.metamanager.wiki/en/latest/
:alt: Wiki

.. image:: https://img.shields.io/github/sponsors/meisnate12?color=%238a2be2&style=plastic
:target: https://github.com/sponsors/meisnate12
:alt: GitHub Sponsors

.. image:: https://img.shields.io/badge/-Sponsor_or_Donate-blueviolet?style=plastic
:target: https://github.com/sponsors/meisnate12
:alt: GitHub Sponsor
:alt: Sponsor or Donate


Overview
Expand Down
31 changes: 30 additions & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Welcome to TMDbAPIs Documentation!
==========================================================

.. image:: https://img.shields.io/github/actions/workflow/status/meisnate12/TMDbAPIs/tests.yml?branch=master&style=plastic
:target: https://github.com/meisnate12/TMDbAPIs/actions/workflows/tests.yml
:alt: Build Testing

.. image:: https://img.shields.io/codecov/c/github/meisnate12/TMDbAPIs?color=greenred&style=plastic
:target: https://codecov.io/gh/meisnate12/TMDbAPIs
:alt: Build Coverage

.. image:: https://img.shields.io/readthedocs/tmdbapis?style=plastic
:target: https://tmdbapis.metamanager.wiki
:alt: Read the Docs
Expand All @@ -21,9 +29,30 @@ Welcome to TMDbAPIs Documentation!
:target: https://github.com/meisnate12/TMDbAPIs/commits/master
:alt: GitHub commits since latest release (by date) for a branch

.. role:: raw-html(raw)
:format: html

:raw-html:`<br />`

.. image:: https://img.shields.io/discord/822460010649878528?color=%2300bc8c&label=Discord&style=plastic
:target: https://discord.gg/NfH6mGFuAB
:alt: Discord

.. image:: https://img.shields.io/reddit/subreddit-subscribers/PlexMetaManager?color=%2300bc8c&label=r%2FPlexMetaManager&style=plastic
:target: https://www.reddit.com/r/PlexMetaManager/
:alt: Reddit

.. image:: https://img.shields.io/readthedocs/plex-meta-manager?color=%2300bc8c&style=plastic
:target: https://tmdbapis.metamanager.wiki/en/latest/
:alt: Wiki

.. image:: https://img.shields.io/github/sponsors/meisnate12?color=%238a2be2&style=plastic
:target: https://github.com/sponsors/meisnate12
:alt: GitHub Sponsors

.. image:: https://img.shields.io/badge/-Sponsor_or_Donate-blueviolet?style=plastic
:target: https://github.com/sponsors/meisnate12
:alt: GitHub Sponsor
:alt: Sponsor or Donate


Overview
Expand Down
4 changes: 4 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
requests
pytest
pytest-cov
python-dotenv
Loading

0 comments on commit 34e8ae0

Please sign in to comment.