Skip to content

Commit

Permalink
Update Github actions to new versions and runon Python 3.8+.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed Jun 6, 2024
1 parent 0c689b2 commit 966f15a
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/runtests.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,37 @@
name: Run tests and build docs

on:
push:
branches: master
pull_request:
branches: master

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ['3.7', '3.8', '3.9', '3.10']

python: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2

- name: Set up Git repository
uses: actions/checkout@v4
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
uses: conda-incubator/setup-miniconda@v3
with:
cache-downloads: true
cache-env: true
auto-update-conda: true
python-version: ${{ matrix.python }}
environment-file: yeadon-dev-env.yml
environment-name: yeadon-dev
extrax-specs: |
python=${{ matrix.python }}
activate-environment: yeadon-dev
miniforge-version: latest
- name: Run the tests
shell: bash -l {0}
run: |
nosetests -v --with-coverage --cover-package=yeadon
- name: Build the documentation
shell: bash -l {0}
run: |
cd doc && make html
- name: Install the software
shell: bash -l {0}
run: |
python setup.py install
yeadon -h

0 comments on commit 966f15a

Please sign in to comment.