Skip to content

Commit

Permalink
gha: add basic CI
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Feb 3, 2024
1 parent 106176b commit 80e911f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Tests

on:
push:
branches: [master]
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
tests:
timeout-minutes: 45
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
pyv: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyv }}
cache: 'pip'

- name: install
run: |
pip install --upgrade pip wheel
pip install -e .
- name: run tests
timeout-minutes: 15
run: pytest -v

0 comments on commit 80e911f

Please sign in to comment.