Skip to content

Commit

Permalink
Separate AQS CI cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoon committed Aug 1, 2023
1 parent 7508a02 commit d0c9ddc
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,49 @@ jobs:
if: github.repository == 'noaa-oar-arl/monetio'
strategy:
matrix:
python-version: ["3.6", "3.8", "3.10"]
python-version: ["3.8", "3.10"]
aqs: [false]
include:
- python-version: "3.6"
aqs: true
- python-version: "3.10"
aqs: true
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3

- name: Set up Python (micromamba)
- name: Set up Python (micromamba) [${{ matrix.python-version }}, no AQS]
if: matrix.python-version != '3.6' && matrix.aqs == false
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-dev.yml
cache-environment: true
create-args: >-
python=${{ matrix.python-version }}
- name: Set up Python (micromamba) [${{ matrix.python-version }}, AQS]
if: matrix.python-version != '3.6' && matrix.aqs == true
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-dev.yml
cache-environment: true
create-args: >-
python=${{ matrix.python-version }}
openssl=1.1.1u
- name: Adjust conda env for Python 3.6
- name: Set up Python (micromamba) [3.6, AQS]
if: matrix.python-version == '3.6'
run: micromamba install attrs=22.2.0
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-dev.yml
cache-environment: true
create-args: >-
python=${{ matrix.python-version }}
attrs=22.2.0
openssl=1.1.1u
- name: Test with pytest
run: pytest -n auto -v
Expand All @@ -44,15 +68,11 @@ jobs:
pip install https://github.com/noaa-oar-arl/pytspack/archive/master.zip
pytest -n auto -v -k with_pytspack
- name: Downgrade OpenSSL and test AQS
- name: Test AQS
if: matrix.aqs == true
run: |
micromamba install 'openssl <3'
pytest -n auto -v -k aqs
- name: Restore current openssl
if: success() || failure()
run: micromamba update openssl

docs:
name: Check docs build
runs-on: ubuntu-latest
Expand Down

0 comments on commit d0c9ddc

Please sign in to comment.