Skip to content

Commit

Permalink
try different pytest gha config
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Jun 12, 2024
1 parent c05abb5 commit b9c3fdd
Showing 1 changed file with 30 additions and 14 deletions.
44 changes: 30 additions & 14 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,38 @@ concurrency:
cancel-in-progress: true

jobs:
# Use pytest to run tests
pytest:
run_pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10.2]

steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
# Checkout code and install miniconda + environment
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install repo
init-shell: bash
create-args: >-
python=${{ matrix.python-version }}
pip
environment-file: environment.yml
environment-name: anglerfish-dev

# Install Anglerfish
- shell: bash -l {0}
name: Install Anglerfish
run: |
python -m pip install .
- name: pytest --> Run tests
run: pytest .
# Install Pytest
- shell: bash -l {0}
name: Install Pytest
run: |
python -m pip install pytest
# Run Pytest
- shell: bash -l {0}
name: Run Pytest
run: |
pytest .

0 comments on commit b9c3fdd

Please sign in to comment.