Skip to content

Commit

Permalink
test new github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mccroweyclinton-EPA committed Nov 4, 2024
1 parent 5fab902 commit 7b6e718
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/buildandtestpyaqsapi.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
name: build_and_test_pyaqsapi
run-name: A push event from ${{ github.actor }} caused a rebuilding and
retesting of the pyaqsapi package via GitHub actions
run-name: A push event from ${{ github.actor }} caused a rebuilding and retesting of the pyaqsapi package via GitHub actions

on:
push:
Expand All @@ -10,57 +8,58 @@ on:
pull_request:
branches:
- main
- github_workflow

jobs:
setup_environment:
runs-on: ubuntu-latest
#runs-on: matrix.os
env:
AQSkey: ${{ secrets.AQSKEY }}
AQSuser: ${{ secrets.AQSUSER }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
#os: ["ubuntu-latest", "windows-latest", "macos-latest"]

steps:
- name: checkout
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:



python-version: ${{ matrix.python-version }}
cache: "pip"

- name: install_dependencies
run: |
conda config --add channels conda-forge
conda update --yes -n base conda
conda install --yes -n base conda-libmamba-solver
conda config --set solver libmamba
conda env update -n base --file=environment.yml -vv
#export PYTHONPATH=$PYTHONPATH:/opt/conda
pip install build
echo "source activate base" >> ~/.bashrc
source ~/.bashrc
sphinx-build --version # Verify sphinx installation
- name: Display Python and sphinx version and system info
run: |
run: |
python -c "import platform; print(platform.uname())"
sphinx-build --version
- name: build and install pyaqsapi in a test environment
run: |
python -m build .
pip install .
- name: build apidocs
run: |
cd docs
make clean
sphinx-apidoc --ext-autodoc -o . ../pyaqsapi/
make html
make html
cd ..
- name: test_package
env:
AQSkey: ${{ secrets.AQSKEY }}
AQSuser: ${{ secrets.AQSUSER }}
run: pytest
AQSuser: ${{ secrets.AQSUSER
9 changes: 5 additions & 4 deletions meta.yml → meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package:
version: {{ version }}

source:
fn: dist/pyaqsapi-1.0.1-beta.tar.gz
git_url: https://github.com/USEPA/pyaqsapi.git

build:
noarch: python
Expand All @@ -20,18 +20,19 @@ requirements:
host:
- python >=3.8
- pep517
- sphinx >=5.0
- sphinx
- sphinx-rtd-theme
- sphinxcontrib-napoleon
- sphinxcontrib-apidoc
- sphinxcontrib-bibtex
- toml
- wheel
- pip
- setuptools >=42
- setuptools
- codecov
- toml
- build
- tox-conda
- wheel

run:
- python > = 3.8
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ pandas
pep517
requests
setuptools
sphinx>=8.0
#sphinxcontrib-napoleon
sphinx
sphinxcontrib-apidoc
# the dependencies required for sphinxcontrib.spelling
# do not seem to be maintained anymore
Expand Down

0 comments on commit 7b6e718

Please sign in to comment.