-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from moorepants/new-dep-versions
Update Github actions to new versions and runon Python 3.8+.
- Loading branch information
Showing
9 changed files
with
217 additions
and
212 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,44 @@ | ||
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 }} | ||
- name: Run the tests | ||
activate-environment: yeadon-dev | ||
miniforge-version: latest | ||
- name: Run nose | ||
shell: bash -l {0} | ||
if: ${{ matrix.python != '3.12' }} | ||
run: | | ||
nosetests -v --with-coverage --cover-package=yeadon | ||
- name: Run pytest | ||
shell: bash -l {0} | ||
if: ${{ matrix.python == '3.12' }} | ||
run: | | ||
conda install pytest | ||
coverage run -m pytest 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 |
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
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
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,3 +1,3 @@ | ||
numpy>=1.16.5 | ||
pyyaml>=5.3.1 | ||
numpydoc>=0.7.0 | ||
numpy>=1.21.5 | ||
pyyaml>=5.4.1 | ||
numpydoc>=1.2 |
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
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,12 +1,12 @@ | ||
name: yeadon-dev | ||
channels: | ||
- conda-forge | ||
# NOTE : The minimum versions correspond to those in Ubuntu 20.04 LTS. | ||
# NOTE : The minimum versions correspond to those in Ubuntu 22.04 LTS. | ||
dependencies: | ||
- coverage >=4.5.2 | ||
- coverage >=6.2 | ||
- nose >=1.3.7 | ||
- numpy >=1.16.5 | ||
- numpydoc >=0.7.0 | ||
- pyyaml >=5.3.1 | ||
- setuptools >=44.0.0 | ||
- sphinx >=1.8.5 | ||
- numpy >=1.21.5 | ||
- numpydoc >=1.2 | ||
- pyyaml >=5.4.1 | ||
- setuptools >=59.6.0 | ||
- sphinx >=4.3.2 |
Oops, something went wrong.