Skip to content

Commit

Permalink
Merge pull request #371 from AutoResearch/restructure/autora
Browse files Browse the repository at this point in the history
refactor!: convert this into the "parent" package for autora, without code
  • Loading branch information
hollandjg authored Jun 2, 2023
2 parents f1b510a + bd4a6ff commit 36e9a9c
Show file tree
Hide file tree
Showing 154 changed files with 793 additions and 39,390 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tab_width = 4
profile = black
max_line_length = 100

[{*.yml,*.yaml}]
[{*.yml,*.yaml,*.toml}]
indent_size = 2
tab_width = 2

Expand Down
12 changes: 0 additions & 12 deletions .github/dependabot.yml

This file was deleted.

21 changes: 8 additions & 13 deletions .github/workflows/publish-documentation-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,21 @@ name: Publish Documentation to GitHub Pages
on:
workflow_dispatch: # this allows us to run it manually
release:
types: [ released ] # only deploy when we make a new `latest` release
types: [released] # only deploy when we make a new `latest` release

permissions:
contents: write

jobs:

build-publish:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: pipx install poetry

- uses: actions/setup-python@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'poetry'

python-version: '3.x'
cache: 'pip'
- name: Install dependencies
run: poetry install

- run: poetry run mkdocs gh-deploy --force
run: pip install -U ".[docs]"
- run: mkdocs gh-deploy --force
45 changes: 0 additions & 45 deletions .github/workflows/publish-package-anaconda-org.yml

This file was deleted.

56 changes: 30 additions & 26 deletions .github/workflows/publish-package-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,38 @@
# 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 ]
types: [published]

permissions:
contents: read

jobs:

build-publish:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: pipx install poetry

- uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'poetry'

- name: Install dependencies
run: poetry install

- name: Bump version number
run: poetry version ${{ github.event.release.tag_name }}

- name: Build package
run: poetry build

- name: Setup PyPI Repository
run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}

- name: Publish
run: poetry publish
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip'
- 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 }}
25 changes: 0 additions & 25 deletions .github/workflows/test-conda-build.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/test-poetry-build.yml

This file was deleted.

13 changes: 6 additions & 7 deletions .github/workflows/test-pre-commit-hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- run: pipx install poetry
- uses: actions/setup-python@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: "poetry"
- run: poetry install --only pre-commit
python-version: '3.8'
cache: 'pip'
- run: pip install pre-commit
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ runner.os }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: poetry run pre-commit run --all-files --show-diff-on-failure --color=always
- run: pre-commit run --all-files --show-diff-on-failure --color=always
25 changes: 25 additions & 0 deletions .github/workflows/test-pypi-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test PyPI Build

on:
pull_request:
merge_group:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
18 changes: 9 additions & 9 deletions .github/workflows/test-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- run: poetry install --only main,test
- run: poetry run pytest
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: pip install -U ".[test]"
- run: pytest
6 changes: 4 additions & 2 deletions .idea/autora.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions .idea/other.xml

This file was deleted.

19 changes: 0 additions & 19 deletions .idea/runConfigurations/pytest_in_tests.xml

This file was deleted.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions Brewfile

This file was deleted.

Loading

0 comments on commit 36e9a9c

Please sign in to comment.