Skip to content

Commit

Permalink
Python 3.10 on the CI as well, add version to reqs file
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Sep 26, 2023
1 parent 2f6b38a commit 1ea0a5a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 28 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.11
python-version: 3.10
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -e .
- name: Pre-commit checks
run: |
python -m pip install pre-commit
pre-commit run --all-files
- name: Run tests
run: |
python -m pytest
# TODO in the future
# - name: Sphinx documentation build
# run: |
# python -m pip install sphinx
# sphinx-build -b html docs/ docs/_build/

# - name: Build and push Docker image
# uses: docker/build-push-action@v2
# with:
# context: .
# push: true
# tags: nathfitz/test:latest
Empty file added docs/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To use pytket-phir, import the main module:

.. code-block:: python
from pytket-phir import main
from pytket.phir import main
main.run()
Expand All @@ -36,6 +36,6 @@ The utils module contains various utility functions that can be used in conjunct

.. code-block:: python
from pytket-phir import utils
from pytket.phir import utils
utils.do_something()
15 changes: 8 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
black
build
black==23.9.1
build==1.0.3
lark-parser==0.12.0
mypy
pre-commit
pytest
sphinx
wheel
mypy==1.5.1
pre-commit==3.4.0
pytest==7.4.2
ruff==0.0.291
sphinx==7.2.6
wheel==0.41.2

0 comments on commit 1ea0a5a

Please sign in to comment.