Fixes and refactor for appstreams promise type #100
Workflow file for this run
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: Continuous Integration | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| unit_tests: | |
| name: Run Unit Tests | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update -y && sudo apt-get install -y python3 | |
| pip install flake8 pyright black pyflakes | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Install cfbs | |
| run: pip install cfbs | |
| - name: Check the status with cfbs | |
| run: cfbs status | |
| - name: Validate with cfbs | |
| run: cfbs validate | |
| - name: Check the formatting | |
| run: cfbs --check pretty ./cfbs.json | |
| - name: Linting | |
| run: ./ci/linting.sh | |
| - name: Install pytest | |
| run: pip install pytest | |
| - name: Run promise type tests | |
| run: python3 -m pytest promise-types/ -v |