Develop #351
This file contains hidden or 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: NEAT Unit and Integration Tests | |
| on: | |
| push: | |
| branches: [develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up micromamba | |
| uses: mamba-org/setup-micromamba@v1 | |
| with: | |
| environment-file: environment.yml | |
| environment-name: neat | |
| cache-environment: true | |
| - name: Install NEAT (with developer dependencies) | |
| shell: bash -l {0} | |
| run: | | |
| micromamba run -n neat poetry install --with dev | |
| - name: Run unit tests | |
| shell: bash -l {0} | |
| run: | | |
| micromamba run -n neat pytest -q tests | |
| - name: Run CLI integration test | |
| shell: bash -l {0} | |
| run: | | |
| micromamba run -n neat pytest -q tests/test_cli |