Skip to content

Commit

Permalink
rewrite tests CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings authored Jun 20, 2024
1 parent fa300cb commit 39d9886
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/python-package-conda.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: tests

on: push

jobs:
test:
name: Run tests
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install test dependencies
run: |
pip install setuptools --upgrade
pip install .[test]
- name: Install package
run: pip install .

- name: Run unit tests
run: |
mkdir -p test-reports
py.test -v --junitxml=test-reports/junit.xml frank/tests.py

0 comments on commit 39d9886

Please sign in to comment.