summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFederico Caselli <CaselIT@users.noreply.github.com>2021-10-27 18:02:39 +0200
committerGitHub <noreply@github.com>2021-10-27 18:02:39 +0200
commit1222900157502624f3c9774c81bac1e096ea88b0 (patch)
treea449a8bb94a3582674b1ea1d5624039cb2585f10 /.github
parentcf605c0994149b1a1936b3a8a597203fe3fbb62e (diff)
downloadpython-mimeparse-1222900157502624f3c9774c81bac1e096ea88b0.tar.gz
chore: add github actions (#42)
* Add github actions Fixes: #39 * Fix workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/run-test.yaml72
1 files changed, 72 insertions, 0 deletions
diff --git a/.github/workflows/run-test.yaml b/.github/workflows/run-test.yaml
new file mode 100644
index 0000000..7328325
--- /dev/null
+++ b/.github/workflows/run-test.yaml
@@ -0,0 +1,72 @@
+name: Run tests
+
+on:
+ push:
+ pull_request:
+
+
+jobs:
+ run-test:
+ name: test-${{ matrix.python-version }}
+ runs-on: "ubuntu-latest"
+ strategy:
+ matrix:
+ python-version:
+ - "3.6"
+ - "3.7"
+ - "3.8"
+ - "3.9"
+ - "3.10"
+ - "pypy-3.7"
+
+ fail-fast: false
+
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v2
+
+ - name: Set up python
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+ architecture: ${{ matrix.architecture }}
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install --upgrade tox setuptools
+ pip list
+
+ - name: Run tests
+ run: |
+ tox
+
+ run-lint:
+ name: lint
+ runs-on: "ubuntu-latest"
+ strategy:
+ matrix:
+ python-version:
+ - "3.10"
+
+ fail-fast: false
+
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v2
+
+ - name: Set up python
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+ architecture: ${{ matrix.architecture }}
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install --upgrade tox setuptools
+ pip list
+
+ - name: Run lint
+ run: |
+ tox -e flake8