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: Download Test Reports | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
miniconda-version: "latest" | |
channels: anaconda | |
channel-priority: true | |
- name: Create conda environment | |
run: conda env create -f devtools/conda-envs/environment.yml | |
- name: Activate conda environment | |
shell: bash -l {0} | |
run: conda activate autosolvate | |
- name: Install additional dependencies if needed | |
run: conda install --yes flake8 pytest | |
- name: Test with pytest | |
run: | |
mkdir -p test-reports | |
conda run -n autosolvate pytest --junitxml=test-reports/results.xml | |
- name: Upload Test Reports | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-reports | |
path: test-reports/results.xml |