Skip to content

Commit

Permalink
adding CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
krokicki committed Oct 19, 2024
1 parent 172e1f8 commit c75c66a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Python CI

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/[email protected]
with:
miniforge-version: latest
use-mamba: true
python-version: ${{ matrix.python-version }}
channel-priority: strict
- name: Install dependencies
run: |
mamba env update --file environment.yml --prune
which python
pip list
mamba list
- name: Test with pytest
run: |
python -m pytest --cov=zarrcade --cov-report=html --cov-report=term -W ignore::DeprecationWarning --html=htmlcov/test_results.html
- name: Upload pytest and coverage results
uses: actions/upload-artifact@v4
if: always()
with:
name: testcoverage-${{ matrix.os }}-py${{ matrix.python-version }}
path: |
htmlcov/*

0 comments on commit c75c66a

Please sign in to comment.