Skip to content

Commit

Permalink
add unittesting on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Nov 4, 2024
1 parent 00d21a4 commit 04498e1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
schedule:
# at 12:00 on Sunday (UTC)
- cron: '0 12 * * 0'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
name: Unittest ({{ matrix.os}}/py${{ matrix.python-version }})
runs-on: {{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.6', '3.10', '3.x']
fail-fast: false
steps:
- uses: actions/checkout@v4
-
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Main Script
run: |
python -m pip install --upgrade pip setuptools setuptools-scm wheel
python -m pip install --verbose --no-build-isolation --editable .
python -m unittest discover -b -f tests

0 comments on commit 04498e1

Please sign in to comment.