This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
Update update-filters.yml #1859
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: null | |
jobs: | |
tests: | |
name: tests | |
runs-on: "ubuntu-latest" | |
steps: | |
- 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: cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ steps.generate_token.outputs.token }} | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 100 | |
- name: install micromamba | |
uses: mamba-org/provision-with-micromamba@main | |
- name: install code | |
shell: bash -l {0} | |
run: | | |
python -m pip install -e . | |
- name: lint | |
shell: bash -l {0} | |
run: | | |
flake8 conda_forge_artifact_validation | |
flake8 bin/* | |
- name: test | |
shell: bash -l {0} | |
run: | | |
pytest -vvs conda_forge_artifact_validation | |
- name: run cli help commands | |
shell: bash -l {0} | |
run: | | |
conda-forge-validate-artifact --help | |
conda-forge-generate-validate-yamls --help | |
- name: run generate smoke test | |
shell: bash -l {0} | |
run: | | |
conda-forge-generate-validate-yamls --test | |
git diff | |
- name: run cli utils tests | |
shell: bash -l {0} | |
run: | | |
wget -q https://conda.anaconda.org/conda-forge/osx-64/numpy-1.19.4-py36hcf5569d_1.tar.bz2 | |
wget -q https://conda.anaconda.org/conda-forge/linux-64/cf-autotick-bot-test-package-0.10-py36h9f0ad1d_2.tar.bz2 | |
wget -q https://conda.anaconda.org/conda-forge/linux-64/freud-0.11.0-py27h3e44d54_0.tar.bz2 | |
pytest -vvs scripts/test_cli_utils.py | |
env: | |
GH_TOKEN: ${{ steps.generate_token.outputs.token }} |