Move Sign individual challenges to ce-cli (#8) #25
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| cache: pip | |
| - name: Generate version | |
| run: echo "VERSION=$(date +%Y.%m.%d).${{ github.run_number }}" >> $GITHUB_ENV | |
| - name: Install dependencies | |
| run: | | |
| pip install build | |
| pip install -e ".[dev]" | |
| - name: Run unit tests | |
| run: pytest -m unit -v | |
| - name: Run integration tests (VCR playback) | |
| run: pytest -m integration -v | |
| env: | |
| CE_PUBLISHER_BASE: ${{ secrets.CE_PUBLISHER_BASE }} | |
| CE_TEST_ACCESS_TOKEN: ${{ secrets.CE_TEST_ACCESS_TOKEN }} | |
| CE_TEST_CHALLENGE_UUID: ${{ secrets.CE_TEST_CHALLENGE_UUID }} | |
| CE_TEST_CTID: ${{ secrets.CE_TEST_CTID }} | |
| CE_TEST_DID_KEY: ${{ secrets.CE_TEST_DID_KEY }} | |
| CE_TEST_DID_WEB: ${{ secrets.CE_TEST_DID_WEB }} | |
| CE_TEST_PRIVKEY_MULTIBASE: ${{ secrets.CE_TEST_PRIVKEY_MULTIBASE }} | |
| CE_TEST_USER_ID: ${{ secrets.CE_TEST_USER_ID }} | |
| VCR_RECORD_MODE: none | |
| - name: Build package | |
| run: python -m build | |
| env: | |
| SETUPTOOLS_SCM_PRETEND_VERSION: ${{ env.VERSION }} |