Avoid unnecessary conda env initialisation #7
Workflow file for this run
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: Reportengine tests | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: test | |
use-mamba: true | |
- name: Update Environment | |
shell: bash -l {0} | |
run: | | |
conda env update -n test -f environment.yml | |
- name: Install pytest dependencies | |
shell: bash -l {0} | |
run: | | |
pip install pytest | |
pip install hypothesis | |
- name: Run Tests | |
shell: bash -l {0} | |
run: | | |
pytest | |