Skip to content

Commit

Permalink
Merge branch 'workflow-main' into feat/reintegrate-workflow
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/pull_request_template.md
#	.github/workflows/publish-package-pypi.yml
#	.github/workflows/test-pytest.yml
#	.gitignore
#	.pre-commit-config.yaml
#	README.md
#	docs/index.md
#	docs/pipeline/Experimentalist Pipeline Examples.ipynb
#	mkdocs.yml
#	pyproject.toml
#	src/autora/experimentalist/pipeline.py
#	src/autora/experimentalist/utils.py
#	src/autora/utils/dictionary.py
#	src/autora/variable/__init__.py
#	src/autora/variable/time.py
#	tests/test_experimentalist_pipeline.py
  • Loading branch information
hollandjg committed Nov 29, 2023
2 parents ecd15a4 + 47d350d commit 903078c
Show file tree
Hide file tree
Showing 27 changed files with 1,550 additions and 57 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Documentation to GitHub Pages

on:
release:
types: [published]

permissions:
contents: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
cache: 'pip'

- name: Install dependencies
run: pip install ".[dev]"

- run: mkdocs gh-deploy --force
39 changes: 39 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Publish to PyPI

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
3 changes: 0 additions & 3 deletions .github/workflows/test-pytest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test with py.test

on:
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# AutoRA-specific files
example/studies/**/modeling

# PyCharm ignores are handled by the .idea/.gitignore file
# VSCode ignores are handled by the .vscode/.gitignore file

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
rev: "v1.5.1"
hooks:
- id: mypy
additional_dependencies: [types-requests,scipy,pytest]
additional_dependencies: [types-requests,scipy,pytest,types-PyYAML]
language_version: python3.8
args:
- "--namespace-packages"
Expand Down
Loading

0 comments on commit 903078c

Please sign in to comment.