init in separate step #348
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
on: | |
- push | |
jobs: | |
pypi: | |
strategy: | |
matrix: | |
python-version: | |
- "3.10" | |
runs-on: ubuntu-latest | |
steps: | |
- name: fetch all history and tags | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Cache conda | |
uses: actions/cache@v2 | |
env: | |
# Increase this value to reset cache if etc/example-environment.yml has not changed | |
CACHE_NUMBER: 0 | |
with: | |
path: ~/conda_pkgs_dir | |
key: | |
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ | |
hashFiles('test-environment.yml') }} | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: test-nbconvert-a11y | |
channel-priority: strict | |
auto-activate-base: true | |
environment-file: test-environment.yml | |
use-only-tar-bz2: true | |
miniforge-variant: Mambaforge | |
use-mamba: true | |
- name: init mamba | |
run: | | |
mamba init | |
- name: init playwright nbconvert-a11y | |
run: | | |
mamba activate test-nbconvert-a11y | |
playwright install --with-deps chrome | |
pip install -e. | |
- name: test with pytest | |
run: | | |
mamba activate test-nbconvert-a11y | |
pytest |