Backport some database and FMP state changes #56
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
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: Python CI | |
| on: | |
| push: | |
| branches: [ "master", "dev" ] | |
| pull_request: | |
| branches: [ "master", "dev" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["pypy2.7", "3.9", "3.10", "3.11"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| - name: Test OPN server | |
| run: | | |
| python opn_server.py --dry-run --log-to-window=false | |
| timeout-minutes: 1 | |
| - name: Test LMP server | |
| run: | | |
| python lmp_server.py --dry-run --log-to-window=false | |
| timeout-minutes: 1 | |
| - name: Test FMP server | |
| run: | | |
| python fmp_server.py --dry-run --log-to-window=false | |
| timeout-minutes: 1 | |
| - name: Test RFP server | |
| run: | | |
| python rfp_server.py --dry-run --log-to-window=false | |
| timeout-minutes: 1 | |
| - name: Test master server | |
| run: | | |
| python master_server.py --dry-run -- --log-to-window=false | |
| timeout-minutes: 1 | |
| lint: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff | |
| - name: Lint with ruff | |
| run: | | |
| ruff check --output-format=github --exclude externals . |