diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml index 19453786..781b8128 100644 --- a/.github/workflows/ci_workflows.yml +++ b/.github/workflows/ci_workflows.yml @@ -12,6 +12,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + env: jref: "https://ssb.stsci.edu/trds_open/jref" @@ -44,7 +47,7 @@ jobs: with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: '3.x' - name: Lint with flake8 @@ -72,9 +75,9 @@ jobs: fetch-depth: 0 lfs: true - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.9' - name: Install and build run: | python -m pip install --upgrade pip setuptools wheel @@ -93,9 +96,9 @@ jobs: fetch-depth: 0 lfs: true - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Install and build run: | python -m pip install --upgrade pip setuptools wheel @@ -112,7 +115,7 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: '3.x' - name: Install and build diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 89d68606..6b9fbe89 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -22,6 +22,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: analyze: name: Analyze diff --git a/.github/workflows/predeps_workflows.yml b/.github/workflows/predeps_workflows.yml new file mode 100644 index 00000000..00fc1b8c --- /dev/null +++ b/.github/workflows/predeps_workflows.yml @@ -0,0 +1,41 @@ +name: rc-testing + +on: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +env: + jref: "https://ssb.stsci.edu/trds_open/jref" + +jobs: + rc_tests: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + # TODO: Enable more OSes when possible. + #os: [ubuntu-latest, windows-latest, macos-latest] + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + lfs: true + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install and build + run: | + python -m pip install --upgrade pip wheel setuptools + python -m pip install numpy astropy --pre + pip install git+https://github.com/spacetelescope/ci_watson.git --upgrade --no-deps + python -m pip install -e .[test,all] + - name: Run tests + run: pytest --remote-data -v diff --git a/setup.cfg b/setup.cfg index edd48dda..20a9df56 100644 --- a/setup.cfg +++ b/setup.cfg @@ -77,6 +77,8 @@ filterwarnings = ignore:unclosed file:ResourceWarning ignore:distutils Version classes are deprecated:DeprecationWarning ignore:Deprecation Warning.*timeout.*parameter no longer needed:UserWarning + # This is from skimage import + ignore:.*np\.bool8.*is a deprecated alias:DeprecationWarning [flake8] # Ignoring these for now: