Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: revive CI #6

Merged
merged 2 commits into from
Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Test

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

defaults:
run:
shell: bash

jobs:

build:
name: "${{ matrix.tests-type }} tests: py${{ matrix.python-version }} on ${{ matrix.os }}"
strategy:
# run all tests even if e.g. image tests fail early
fail-fast: false
matrix:
os:
#- macos-latest
#- windows-latest
- ubuntu-latest
python-version:
- '3.8'
- '3.9'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

holding off on 3.10 and 3.11?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried both and got some runtime errors with pyximport. I'll work on that in a follow up PR


runs-on: ${{ matrix.os }}

steps:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Checkout repo
uses: actions/checkout@v3
- name: Build
shell: bash
env:
dependencies: ${{ matrix.dependencies }}
run: |
python -m pip install "."
python -m pip install -r test_requirements.txt
- name: Run Tests
env:
testsuite: ${{ matrix.tests-type }}
run: pytest --color=yes
44 changes: 0 additions & 44 deletions .github/workflows/python-package.yml

This file was deleted.

Loading