From 49686e6d760db3b7d4ec5cdd00434bd83eb40903 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Tue, 18 Jun 2024 11:10:18 +0100 Subject: [PATCH 1/2] wip: test with py3.13 --- .github/workflows/ci-py3.13.yml | 55 +++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 2 +- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci-py3.13.yml diff --git a/.github/workflows/ci-py3.13.yml b/.github/workflows/ci-py3.13.yml new file mode 100644 index 00000000..e1c1ef79 --- /dev/null +++ b/.github/workflows/ci-py3.13.yml @@ -0,0 +1,55 @@ +name: Continuous builds py3.13 + +on: + push: + branches: + - master + - development + - experimental + - 'test*' + pull_request: + branches: + - master + - development + - experimental + - 'test*' + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + pull-requests: write + strategy: + matrix: + python-version: ["3.13.0-beta.2"] + fail-fast: false + + steps: + + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Print refs + run: | + echo "github.ref is: ${{ github.ref }}" + echo "github.base_ref is: ${{ github.base_ref }}" + + - name: Upgrade pip, install deps + run: | + python -m pip install --upgrade pip + pip install numpy<2.0.0 # due to lingering issues with other modules + pip install .[dev] + + - name: List packages so far + run: | + pip list + + - name: Run tests + run: | + pynml -h + + ./test-ghactions.sh -neuron diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7a568ad..28c4cec4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: pull-requests: write strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-beta.2"] fail-fast: false steps: From aeb92ec272074d8d19f1c1a2a59a71d469ee0992 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Tue, 18 Jun 2024 11:23:29 +0100 Subject: [PATCH 2/2] ci: fix pip command --- .github/workflows/ci-py3.13.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-py3.13.yml b/.github/workflows/ci-py3.13.yml index e1c1ef79..00347dda 100644 --- a/.github/workflows/ci-py3.13.yml +++ b/.github/workflows/ci-py3.13.yml @@ -41,7 +41,7 @@ jobs: - name: Upgrade pip, install deps run: | python -m pip install --upgrade pip - pip install numpy<2.0.0 # due to lingering issues with other modules + pip install 'numpy<2.0.0' # due to lingering issues with other modules pip install .[dev] - name: List packages so far