Skip to content

Commit

Permalink
test: add github actions workflow for CI
Browse files Browse the repository at this point in the history
Run basic test on push and pull_request.

Signed-off-by: ko-zu <[email protected]>
  • Loading branch information
ko-zu committed Jun 18, 2024
1 parent 3e16a34 commit f7b5e2c
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/citest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI test

on:
push:
branches-ignore:
- autorelease
pull_request:
branches:
- devel

jobs:
test-oldpython:
runs-on: "ubuntu-20.04"
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.5
uses: actions/setup-python@v5
with:
python-version: 3.5
env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
# workaround for certificate incompatibility
- name: Run test
run: |
pip install .
python -m publicsuffixlist.test
test:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run test
run: |
pip install .
python -m publicsuffixlist.test

0 comments on commit f7b5e2c

Please sign in to comment.