Skip to content

Improve compatibility with cryptography>=41. #43

Improve compatibility with cryptography>=41.

Improve compatibility with cryptography>=41. #43

Workflow file for this run

name: Tests
on:
# NOTE: github.event context is push payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push
push:
branches:
- main
# NOTE: github.event context is pull_request payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
pull_request:
concurrency:
# Concurrency group that uses the workflow name and PR number if available
# or commit SHA as a fallback. If a new build is triggered under that
# concurrency group while a previous build is running it will be canceled.
# Repeated pushes to a PR will cancel all previous builds, while multiple
# merges to main will not cancel.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
# test suite
tests:
runs-on: ${{ matrix.runner }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
runner: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Timestamp
run: echo "TIMESTAMP=$(date -u "+%Y%m")" >> $GITHUB_ENV
shell: bash
- name: Cache conda
uses: actions/cache@v3
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-content-trust-${{ env.TIMESTAMP }}
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup environment
run: |
conda install -q -y -c defaults \
--file ./tests/requirements.txt
- name: Show info
run: |
conda info -a
conda list --show-channel-urls
- name: Run tests
run: pytest --cov=conda_content_trust
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
flags: ${{ matrix.python-version }},${{ runner.os }}