Skip to content

Commit

Permalink
Added github action config
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyowl committed Oct 18, 2023
1 parent 12a6cdc commit e529698
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Testing

on: [push, pull_request]

jobs:
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:

- name: latest supported versions
os: ubuntu-latest
python-version: '3.10'
toxenv: py310-test-all-latest-cov

#- name: oldest supported versions
#os: ubuntu-latest
#python-version: '3.8'
#toxenv: py38-test-oldest

#- name: macOS 11
#os: macos-11
#python-version: '3.10'
#toxenv: py310-test-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Conda w/ Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: false
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install Dependencies
shell: bash -el {0}
run: |
pip install tox-conda
- name: Run Tests
shell: bash -el {0}
run: |
tox -e ${{ matrix.toxenv }} ${{ matrix.toxargs }} -- ${{ matrix.toxposargs }}

0 comments on commit e529698

Please sign in to comment.