Skip to content

redeploy for 'conda-smithy=3.29.0' #1209

redeploy for 'conda-smithy=3.29.0'

redeploy for 'conda-smithy=3.29.0' #1209

Workflow file for this run

name: tests
on:
push: null
workflow_dispatch: null
env:
PY_COLORS: 1
jobs:
tests:
name: tests
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
- name: generate token
id: generate_token
uses: conda-forge/github-app-token@e3ab451d57e120b956292a1fa1d21fe4ba171c36
with:
app_id: ${{ secrets.CF_CURATOR_APP_ID }}
private_key: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}
- name: configure conda
shell: bash -l {0}
run: |
conda config --set show_channel_urls True
conda config --add channels conda-forge
mamba install --yes --quiet --file conda-requirements.txt
git config --global user.email "79913779+conda-forge-curator[bot]@users.noreply.github.com"
git config --global user.name "conda-forge-curator[bot]"
mkdir -p ~/.conda-smithy/ && echo $GH_TOKEN > ~/.conda-smithy/github.token
pip install --no-deps -e .
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: lint
shell: bash -l {0}
run: |
# maybe later...
# black --check conda_forge_webservices
flake8 conda_forge_webservices
- name: run test suite
shell: bash -l {0}
run: |
export CF_WEBSERVICES_TEST=1
pytest -vvx conda_forge_webservices
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
PROD_BINSTAR_TOKEN: ${{ secrets.PROD_BINSTAR_TOKEN }}
STAGING_BINSTAR_TOKEN: ${{ secrets.HEROKU_ONLY_STAGING_BINSTAR_TOKEN }}
CF_WEBSERVICES_TOKEN: ${{ secrets.CF_WEBSERVICES_TOKEN }}
CF_WEBSERVICES_APP_ID: ${{ secrets.CF_CURATOR_APP_ID }}
CF_WEBSERVICES_PRIVATE_KEY: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}
live-tests:
name: live-tests
runs-on: "ubuntu-latest"
needs: tests
concurrency:
group: live-tests
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
- name: generate token
id: generate_token
uses: conda-forge/github-app-token@e3ab451d57e120b956292a1fa1d21fe4ba171c36
with:
app_id: ${{ secrets.CF_CURATOR_APP_ID }}
private_key: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}
- name: configure conda
shell: bash -l {0}
run: |
conda config --set show_channel_urls True
conda config --add channels conda-forge
mamba install --yes --quiet --file conda-requirements.txt
git config --global user.email "79913779+conda-forge-curator[bot]@users.noreply.github.com"
git config --global user.name "conda-forge-curator[bot]"
git config --global pull.rebase false
mkdir -p ~/.conda-smithy/ && echo $GH_TOKEN > ~/.conda-smithy/github.token
pip install --no-deps -e .
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: run package upload tests
shell: bash -l {0}
run: |
export CF_WEBSERVICES_TEST=1
./scripts/run_cfep13_tests.sh
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
PROD_BINSTAR_TOKEN: ${{ secrets.PROD_BINSTAR_TOKEN }}
STAGING_BINSTAR_TOKEN: ${{ secrets.HEROKU_ONLY_STAGING_BINSTAR_TOKEN }}
CF_WEBSERVICES_TOKEN: ${{ secrets.CF_WEBSERVICES_TOKEN }}
CF_WEBSERVICES_APP_ID: ${{ secrets.CF_CURATOR_APP_ID }}
CF_WEBSERVICES_PRIVATE_KEY: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}