Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Sep 6, 2023
1 parent c3c4342 commit b53be7b
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: test

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: [main]
pull_request:
branches: ['*']

jobs:
test:

strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']

runs-on: ubuntu-latest

steps:

- name: Clone
uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y git-annex
python -m pip install --upgrade pip
- name: Install
run: pip install .[test]

- name: unit tests
run: python -m pytest tests --cov-report=xml

0 comments on commit b53be7b

Please sign in to comment.