Skip to content

Commit ec30dcf

Browse files
committed
Migrate CI from CircleCI to GitHub Actions
1 parent 1626882 commit ec30dcf

3 files changed

Lines changed: 39 additions & 40 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
cache: 'pip'
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -e . -r requirements.txt
29+
30+
- name: Run tests
31+
run: |
32+
pytest -v

README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Youtube Closed Captions
44
Downloads the closed captions(subtitles) from Youtube videos
55
============================================================
66

7-
.. image:: https://circleci.com/gh/mkly/youtube-closed-captions.svg?style=svg
8-
:target: https://circleci.com/gh/mkly/youtube-closed-captions
7+
.. image:: https://github.com/mkly/youtube-closed-captions/actions/workflows/ci.yml/badge.svg
8+
:target: https://github.com/mkly/youtube-closed-captions/actions/workflows/ci.yml
99

1010
Requirements
1111
~~~~~~~~~~~~
1212

13-
* Currently requires python >= 3.5
13+
* Currently requires Python >= 3.8
1414

1515
To Use
1616
~~~~~~
@@ -36,6 +36,9 @@ Run Tests
3636
.. code:: bash
3737
3838
## All tests
39+
pytest
40+
41+
## Or using unittest
3942
python -m unittest discover
4043
4144
## Unit tests
@@ -44,3 +47,4 @@ Run Tests
4447
## Functional tests
4548
python -m unittest discover test/functional
4649
50+

0 commit comments

Comments
 (0)