Skip to content

Commit

Permalink
Add a workflow for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Jul 7, 2023
1 parent 8dde096 commit b8ce5b0
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
push:
paths-ignore:
- '.gitignore'
- 'README.rst'
pull_request:
paths-ignore:
- '.gitignore'
- 'README.rst'

permissions:
contents: read

jobs:
unit-test:
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref_name }}-ut-${{ matrix.os }}-${{ matrix.python-version }}
cancel-in-progress: true
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v3

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
setup.py
**/*requirements.txt
tox.ini
- name: Install pip
run: python -m pip install --upgrade --disable-pip-version-check "pip>=21.1"

- run: make setup-ci

- run: tox -e py

0 comments on commit b8ce5b0

Please sign in to comment.