forked from chrisdembia/yeadon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Github actions to new versions and runon Python 3.8+.
- Loading branch information
1 parent
0c689b2
commit 966f15a
Showing
1 changed file
with
10 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |