-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add github actions workflow for CI
Run basic test on push and pull_request. Signed-off-by: ko-zu <[email protected]>
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||