Skip to content

Commit

Permalink
Use Poetry for package management and Nox in github actions (#34)
Browse files Browse the repository at this point in the history
* use poetry, changes to noxfile

* set extension version from pyproject.toml

* refactor docs build, add docs build noxfile session

* add mypy session, add dev-requirements.txt, cleanup

* add actions to run nox

* fix inputs name

* fix inputs name

* better run name

* fix test runs

* change naming

* use environment files for github output

* allow 3.10 3.11 for all nox sessions

* add pull request trigger, remove unneeded poetry work around

* add release action, remove unneeded actions

* fix docs-build session name

* naming changes, test dist download

* dist download works, only do it on release

* Add ref name to release run

* move mypy config to pyproject.toml

* update dependencies

* update readme

* restrict python version in pyproject.toml

* remove mypy-check script

* ignore poetry.lock to always use latest version on ci, remove unnecessary pytest.ini

* update extension version, update python version spec

* add checks with pytket pre-release if pre-release exists

* print versions found

* fix pre-release tests, use github token with lastversion

* upload coverage data

* upload coverage data

* run tests on push to develop

* add job that checks that all jobs succeeded

* Run release prep on pull requests

* Update .github/workflows/release.yml

Co-authored-by: cqc-melf <70640934+cqc-melf@users.noreply.github.com>

* Update pyproject.toml

Co-authored-by: cqc-melf <70640934+cqc-melf@users.noreply.github.com>

* Update pyproject.toml

Co-authored-by: cqc-melf <70640934+cqc-melf@users.noreply.github.com>

* Add email for author

* In nox-session workflow use pytket pre-release per default

* update dependabot.yml

* update README.md

* update changelog

* fix changelog

* use rc version

---------

Co-authored-by: cqc-melf <70640934+cqc-melf@users.noreply.github.com>
  • Loading branch information
trvto and cqc-melf authored Jul 10, 2023
1 parent 08d0842 commit 74b4fc7
Show file tree
Hide file tree
Showing 48 changed files with 934 additions and 717 deletions.
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

version: 2
updates:
- package-ecosystem: "github-actions"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "weekly"
interval: weekly
- package-ecosystem: pip
directory: "/"
schedule:
interval: weekly
64 changes: 0 additions & 64 deletions .github/workflows/build-test

This file was deleted.

143 changes: 0 additions & 143 deletions .github/workflows/build_and_test.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/docs.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/docs/check-build-docs

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/docs/intro.txt

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/docs/requirements.txt

This file was deleted.

Empty file.
14 changes: 0 additions & 14 deletions .github/workflows/fetch-modules

This file was deleted.

44 changes: 22 additions & 22 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ jobs:
name: Create Jira issue
runs-on: ubuntu-22.04
steps:
- name: Login
uses: atlassian/gajira-login@v3.0.1
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create Bug
uses: atlassian/gajira-create@v3.0.1
if: contains(github.event.issue.labels.*.name, 'bug')
with:
project: TKET
issuetype: Bug
summary: « [pytket-aqt] ${{ github.event.issue.title }}»
description: ${{ github.event.issue.html_url }}
- name: Create Task
uses: atlassian/gajira-create@v3.0.1
if: "! contains(github.event.issue.labels.*.name, 'bug')"
with:
project: TKET
issuetype: Task
summary: « [pytket-aqt] ${{ github.event.issue.title }}»
description: ${{ github.event.issue.html_url }}
- name: Login
uses: atlassian/gajira-login@v3.0.1
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create Bug
uses: atlassian/gajira-create@v3.0.1
if: contains(github.event.issue.labels.*.name, 'bug')
with:
project: TKET
issuetype: Bug
summary: « [pytket-aqt] ${{ github.event.issue.title }}»
description: ${{ github.event.issue.html_url }}
- name: Create Task
uses: atlassian/gajira-create@v3.0.1
if: "! contains(github.event.issue.labels.*.name, 'bug')"
with:
project: TKET
issuetype: Task
summary: « [pytket-aqt] ${{ github.event.issue.title }}»
description: ${{ github.event.issue.html_url }}
28 changes: 0 additions & 28 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/linting/lint-requirements.txt

This file was deleted.

Loading

0 comments on commit 74b4fc7

Please sign in to comment.