Merge pull request #38 from berquist/rename-project #195
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
--- | |
name: test | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
jobs: | |
test: | |
name: Test on Python ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, "3.10", 3.11] | |
defaults: | |
run: | |
shell: "bash -l {0}" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# so versioningit can figure out the version | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Set up Python ${{ matrix.python-version }} with conda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: test | |
auto-activate-base: false | |
auto-update-conda: true | |
environment-file: devtools/conda-envs/test_env.yaml | |
miniforge-version: latest | |
python-version: ${{ matrix.python-version }} | |
show-channel-urls: true | |
- name: Print Python environment | |
run: python -m pip list | |
- name: Update installation infrastructure | |
run: python -m pip install -U setuptools pip | |
- name: Print conda environment | |
run: conda list | |
- name: Print conda info | |
run: conda info | |
- name: Print conda config | |
run: conda config --show | |
- name: Install | |
run: python -m pip install . | |
- name: Run tests | |
run: make test | |
- name: Build documentation | |
run: | | |
cd docs | |
make html | |
- name: GitHub Pages deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs/build/html | |
# yamllint disable-line rule:line-length | |
if: ${{ github.event_name == 'push' && matrix.python-version == '3.11' }} |