From abee36ae0c647021495f94d456d088d7096dfba6 Mon Sep 17 00:00:00 2001 From: jdebacker Date: Wed, 15 May 2024 15:05:55 -0400 Subject: [PATCH] update versions in GH Actions --- .github/workflows/build_and_test.yml | 7 ++++--- .github/workflows/check_black.yml | 4 ++-- .github/workflows/deploy_docs.yml | 6 +++--- .github/workflows/docs_check.yml | 4 ++-- .github/workflows/version_check.yml | 6 +++--- environment.yml | 3 +-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 7d6b03a..1f549bb 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -13,11 +13,11 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@master with: persist-credentials: false - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install @@ -34,8 +34,9 @@ jobs: run: | pytest -m 'not local' --cov=./ --cov-report=xml --maxfail=0 - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.xml flags: unittests name: codecov-umbrella diff --git a/.github/workflows/check_black.yml b/.github/workflows/check_black.yml index 6a0aa63..09c4d90 100644 --- a/.github/workflows/check_black.yml +++ b/.github/workflows/check_black.yml @@ -6,8 +6,8 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@master + - uses: actions/setup-python@v5 - uses: psf/black@stable with: options: "-l 79 --check" diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 4e03b49..cf47180 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -9,19 +9,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@master with: persist-credentials: false - name: Setup Miniconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: activate-environment: oguk-dev environment-file: environment.yml python-version: 3.9 auto-activate-base: false - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 diff --git a/.github/workflows/docs_check.yml b/.github/workflows/docs_check.yml index e80987b..437092f 100644 --- a/.github/workflows/docs_check.yml +++ b/.github/workflows/docs_check.yml @@ -6,11 +6,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@master with: persist-credentials: false - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 diff --git a/.github/workflows/version_check.yml b/.github/workflows/version_check.yml index 6647c8e..b9d6da5 100644 --- a/.github/workflows/version_check.yml +++ b/.github/workflows/version_check.yml @@ -7,12 +7,12 @@ jobs: name: Check versioning runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@master with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: 3.9 - name: Check version number has been properly updated run: ".github/is-version-number-acceptable.sh" diff --git a/environment.yml b/environment.yml index 99182d6..4e545e2 100644 --- a/environment.yml +++ b/environment.yml @@ -2,7 +2,7 @@ name: oguk-dev channels: - conda-forge dependencies: -- python>=3.7.7, <=3.11 # This restriction can be removed as soon as these packages support Python 3.10 +- python>=3.7.7, <3.12 # This restriction can be removed as soon as these packages support Python 3.10 - ipython - setuptools - psutil @@ -27,7 +27,6 @@ dependencies: - statsmodels - linearmodels - black -- pre-commit - jupyter - pip: - jupyter-book>=0.8.0