From 8ac7ef1ba6735cb0574d3c7e62d69414cf56ad2e Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Tue, 22 Oct 2024 15:05:58 -0700 Subject: [PATCH 1/3] Update python-publish.yml --- .github/workflows/python-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 8043399..4340295 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -21,11 +21,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: - python-version: '3.x' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -37,4 +37,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + password: ${{ secrets.PYPI_API_TOKEN }} From c87d97c36fde36803276dfde883c8b4790a45ead Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Tue, 22 Oct 2024 15:08:32 -0700 Subject: [PATCH 2/3] Update pyproject.toml --- pyproject.toml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bbc7611..917902c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ keywords = ["machine-learning", "dft", "vasp", "volumetric", "pymatgen"] license = {text = "modified BSD"} name = "mp-pyrho" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" [tool.setuptools_scm] @@ -43,12 +43,9 @@ docs = [ "sphinx-autoapi==3.0.0", ] tests = [ - "pytest==7.1.2", - "pytest-cov==3.0.0", - "hypothesis==6.98.10", -] -strict = [ - "pymatgen==2024.2.20", + "pytest>=7.1.2", + "pytest-cov>=3.0.0", + "hypothesis>=6.98.10", ] [project.urls] From ed8cb0b2767c47efb38935c62c2ca4f295605b41 Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Tue, 22 Oct 2024 15:09:14 -0700 Subject: [PATCH 3/3] Update testing.yml --- .github/workflows/testing.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 4896efe..79dfbad 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -12,19 +12,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" cache: pip cache-dependency-path: pyproject.toml - name: Install dependencies run: | python -m pip install --upgrade pip - pip install .[strict] - pip install .[tests] - pip install .[dev] + pip install .[tests,dev] - name: Lint run: | @@ -34,12 +32,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ "3.9", "3.10", "3.11" ] + python-version: ["3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v2.2.2 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -53,7 +51,6 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install .[strict] pip install .[tests] - name: Test @@ -61,7 +58,7 @@ jobs: pytest --cov=pyrho --cov-report=xml - uses: codecov/codecov-action@v1 - if: matrix.python-version == 3.8 + if: matrix.python-version == 3.11 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml @@ -70,19 +67,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pandoc run: sudo apt-get install pandoc - - uses: actions/setup-python@v3 + - uses: actions/setup-python@v5 with: python-version: 3.11 - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e .[strict] pip install -e .[docs] - name: Build run: sphinx-build docs/source _build