-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new github actions workflow using microconda, add suggested pylin…
…t edits, fix environment.yml
- Loading branch information
1 parent
06ddfa6
commit e28d2cd
Showing
8 changed files
with
111 additions
and
104 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: new_build_and_test_pyaqsapi | ||
run-name: A push event from ${{ github.actor }} caused a rebuilding and retesting of the pyaqsapi package via GitHub actions | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- github_workflow | ||
pull_request: | ||
branches: | ||
- main | ||
- github_workflow | ||
|
||
jobs: | ||
setup_environment: | ||
runs-on: ubuntu-latest | ||
env: | ||
AQSkey: ${{ secrets.AQSKEY }} | ||
AQSuser: ${{ secrets.AQSUSER }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
|
||
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 }} | ||
|
||
- name: setup environment | ||
uses: mamba-org/setup-micromamba@v2 | ||
with: | ||
environment-file: environment.yml | ||
init-shell: >- | ||
bash | ||
powershell | ||
cache-environment: true | ||
environment-name: pyaqsapi | ||
post-cleanup: 'all' | ||
shell: powershell | ||
|
||
- name: Display Python and sphinx version and system info | ||
run: | | ||
python -c "import platform; print(platform.uname())" | ||
sphinx-build --version | ||
- name: build and install pyaqsapi in a test environment using python-build and pip | ||
run: | | ||
python -m build . | ||
pip install . | ||
- name: build apidocs | ||
run: | | ||
cd docs | ||
make clean | ||
sphinx-apidoc --ext-autodoc -o . ../pyaqsapi/ | ||
make html | ||
- name: test_package | ||
env: | ||
AQSkey: ${{ secrets.AQSKEY }} | ||
AQSuser: ${{ secrets.AQSUSER }} | ||
run: pytest |
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,2 +1,2 @@ | ||
"%PYTHON%" python -m build . | ||
if errorlevel 1 exit 1 | ||
"%PYTHON%" setup.py install | ||
if errorlevel 1 exit 1 |
Binary file not shown.
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