Skip to content

Commit

Permalink
Add tests to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Dec 12, 2023
1 parent a051838 commit 88a20c4
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 35 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: tests

on:
push:
branches:
- main
tags:
- '*'
pull_request:

jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@main

test:
needs: [linting]
name: ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}

defaults:
run:
shell: bash -l {0}

strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
auto-update-conda: true
channels: conda-forge
activate-environment: "true"
- name: Install RClone
run: |
conda activate true
conda install -c conda-forge rclone
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Test
run: pytest
35 changes: 0 additions & 35 deletions .github/workflows/linting.yml

This file was deleted.

0 comments on commit 88a20c4

Please sign in to comment.