Mamba Env Pytest #10
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: Mamba Env Pytest | |
run-name: Mamba Env Pytest | |
on: | |
pull_request: | |
types: [labeled, opened] | |
merge_group: | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash -leo pipefail {0} | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: '1.5.8-0' # any version from https://github.com/mamba-org/micromamba-releases | |
micromamba-binary-path: ${{ runner.temp }}/bin/micromamba | |
environment-name: mamba_pytest_${{ github.sha }} | |
create-args: python=3.11 | |
post-cleanup: 'all' | |
init-shell: bash | |
# - name: Lint with flake8 | |
# run: | | |
# mamba install flake8 | |
# # stop the build if there are Python syntax errors or undefined names | |
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Check In Mamba | |
run: mamba env | |
- name: Install Pytest | |
run: pip install pytest | |
- name: Run Pytest Tests | |
run: pytest |