summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVal Neekman (AvidCoder) <un33kvu@gmail.com>2022-02-16 15:30:11 -0500
committerVal Neekman (AvidCoder) <un33kvu@gmail.com>2022-02-16 15:30:11 -0500
commit45e0ae3d0db0fce0c7e875491848a646f3011386 (patch)
tree8397880b719849bc28dbf8599097d4bb890c2bc6
parent937779c77420f4acb8acd775bc2c35ed94f1393d (diff)
downloadpython-slugify-45e0ae3d0db0fce0c7e875491848a646f3011386.tar.gz
github actions
-rw-r--r--.github/workflows/ci.yml42
-rw-r--r--.github/workflows/dev.yml43
-rw-r--r--.github/workflows/main.yml42
-rwxr-xr-xsetup.py1
4 files changed, 128 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..34ea50c
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,42 @@
+name: (CI)
+
+on:
+ push:
+ branches:
+ - ci
+
+jobs:
+ build:
+ name: Setup ${{ matrix.python }} ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [macos-latest, windows-latest, ubuntu-latest]
+ python: [3.6, 3.7, 3.8, 3.9, "3.10", pypy3]
+ steps:
+ - name: setup-python ${{ matrix.python }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python }}
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -e .
+ pip install coveralls --upgrade
+ - name: Run flake8
+ run: |
+ pip install flake8 --upgrade
+ flake8 --exclude=migrations,tests --ignore=E501,E241,E225,E128 .
+ - name: Run pycodestyle
+ run: |
+ pip install pycodestyle --upgrade
+ pycodestyle --exclude=migrations,tests --ignore=E501,E241,E225,E128 .
+ - name: Run test
+ run: |
+ coverage run --source=python test.py
+ - name: Coveralls
+ run: coveralls --service=github
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
new file mode 100644
index 0000000..ebfbe0a
--- /dev/null
+++ b/.github/workflows/dev.yml
@@ -0,0 +1,43 @@
+name: (CI)
+
+on:
+ push:
+ branches:
+ - sandbox
+ - dev
+
+jobs:
+ build:
+ name: Setup ${{ matrix.python }} ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [macos-latest, windows-latest, ubuntu-latest]
+ python: [3.6, 3.7, 3.8, 3.9, "3.10", pypy3]
+ steps:
+ - name: setup-python ${{ matrix.python }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python }}
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -e .
+ pip install coveralls --upgrade
+ - name: Run flake8
+ run: |
+ pip install flake8 --upgrade
+ flake8 --exclude=migrations,tests --ignore=E501,E241,E225,E128 .
+ - name: Run pycodestyle
+ run: |
+ pip install pycodestyle --upgrade
+ pycodestyle --exclude=migrations,tests --ignore=E501,E241,E225,E128 .
+ - name: Run test
+ run: |
+ coverage run --source=python test.py
+ - name: Coveralls
+ run: coveralls --service=github
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..7b7146b
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,42 @@
+name: (CI)
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+ name: Setup ${{ matrix.python }} ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [macos-latest, windows-latest, ubuntu-latest]
+ python: [3.6, 3.7, 3.8, 3.9, "3.10", pypy3]
+ steps:
+ - name: setup-python ${{ matrix.python }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python }}
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -e .
+ pip install coveralls --upgrade
+ - name: Run flake8
+ run: |
+ pip install flake8 --upgrade
+ flake8 --exclude=migrations,tests --ignore=E501,E241,E225,E128 .
+ - name: Run pycodestyle
+ run: |
+ pip install pycodestyle --upgrade
+ pycodestyle --exclude=migrations,tests --ignore=E501,E241,E225,E128 .
+ - name: Run test
+ run: |
+ coverage run --source=python test.py
+ - name: Coveralls
+ run: coveralls --service=github
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/setup.py b/setup.py
index 51b267f..769f5a1 100755
--- a/setup.py
+++ b/setup.py
@@ -29,6 +29,7 @@ classifiers = [
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
]