Fix some bugs. #40
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: Integration Test and Unit Test | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: PyTest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Github | |
| uses: actions/checkout@v4 | |
| - name: Set up Conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| python-version: 3.12 | |
| channels: deepmodeling,conda-forge,defaults | |
| channel-priority: true | |
| activate-environment: test-env | |
| environment-file: environment.yml | |
| use-mamba: true | |
| - name: Run smoke/unit/integration/regression tests | |
| shell: bash -l {0} | |
| env: | |
| ENABLE_PYABACUS_TESTS: "0" | |
| run: | | |
| pytest -q -m "not pyabacus" tests/smoke tests/unit tests/integration tests/regression | |
| # - name: Archive Pytest test report | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: SuperTest-test-report | |
| # path: report | |
| # - name: Upload Pytest report to GitHub | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: Pytest-test-report | |
| # path: report |