Repository: twisted/ampoule (language: python)

Issue:
switch from travis to github actions
Travis hasn't worked for a long time.


Discussion / hints:

Fix patch:
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 86a0a94..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-language: python
-
-branches:
-  only:
-    - master
-
-script:
-  - tox -e $TOX_ENV
-
-install:
-  - pip install tox
-
-matrix:
-  include:
-    - python: 2.7
-      env: TOX_ENV=py27
-    - python: 3.6
-      env: TOX_ENV=py36
-


Test patch:
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
new file mode 100644
index 0000000..8fce184
--- /dev/null
+++ b/.github/workflows/test.yaml
@@ -0,0 +1,34 @@
+name: CI
+
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+
+jobs:
+  unit:
+    name: "Py:${{ matrix.python-version }}"
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        python-version:
+          - "3.7"
+          - "3.8"
+          - "3.9"
+          - "3.10"
+          - "3.11"
+    steps:
+      - name: Checkout source code
+        uses: actions/checkout@v4
+
+      - name: Install Python
+        uses: actions/setup-python@v5
+        with:
+          python-version: ${{ matrix.python-version }}
+
+      - name: Install tox
+        run: pip install tox
+
+      - name: Run unit tests
+        run: tox -e py