Unit Tests #262
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: Unit Tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '00 12 * * *' # daily at 4AM | |
jobs: | |
run_tests: | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
fail-fast: false | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v3 | |
- name: Install dependencies with pip | |
run: | | |
pip install . | |
pip install -r requirements-dev.txt | |
pip list | |
- name: Test the code | |
run: | | |
set -vxuo pipefail | |
pytest -s -vv -m atmosphere |