Skip to content

Commit

Permalink
Use ${{github.workspace}} in constraint file path (#97)
Browse files Browse the repository at this point in the history
* use github workspace var

* also fix in release.yml

* try different way to import
  • Loading branch information
trvto authored Apr 25, 2024
1 parent 8ff0695 commit 733aff2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nox-session.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ jobs:
- name: Install Poetry
run: |
pipx install --pip-args=--constraint=dev-tool-requirements.txt poetry
pipx install --pip-args=--constraint=${{ github.workspace }}/dev-tool-requirements.txt poetry
poetry --version
- name: Install Nox
run: |
pipx install --pip-args=--constraint=dev-tool-requirements.txt nox
pipx install --pip-args=--constraint=${{ github.workspace }}/dev-tool-requirements.txt nox
nox --version
- name: Compute pre-commit cache key
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ jobs:
- name: Install Poetry
run: |
pipx install --pip-args=--constraint=dev-tool-requirements.txt poetry
pipx install --pip-args=--constraint=${{ github.workspace }}/dev-tool-requirements.txt poetry
poetry --version
- name: Install Nox
run: |
pipx install --pip-args=--constraint=dev-tool-requirements.txt nox
pipx install --pip-args=--constraint=${{ github.workspace }}/dev-tool-requirements.txt nox
nox --version
- name: Build wheel
Expand Down
4 changes: 3 additions & 1 deletion docs/build-docs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
import argparse
import datetime
from datetime import date
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -67,6 +67,8 @@ def build_module_docs() -> None:
"-D",
f"project=pytket-{MODULE}",
"-D",
f"copyright={date.today().year} Cambridge Quantum Computing",
"-D",
f"version={'.'.join(v[:2])}",
"-D",
f"release={'.'.join(v)}",
Expand Down

0 comments on commit 733aff2

Please sign in to comment.