v0.5.0 - submission validation, churn, and turnover (#50) #145
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: Test & Deploy Numerai Tools | |
| on: | |
| workflow_dispatch: | |
| push: | |
| concurrency: deploy-numerai-tools-${{ github.ref }} | |
| jobs: | |
| test-and-deploy-numerai-tools: | |
| name: Test & Deploy Numerai Tools | |
| strategy: | |
| matrix: | |
| python-version: [3.11, 3.12, 3.13] | |
| permissions: | |
| id-token: write | |
| contents: read | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: snok/install-poetry@v1 | |
| with: | |
| virtualenvs-create: true | |
| virtualenvs-in-project: false | |
| - name: Install dependencies | |
| run: poetry install --with dev | |
| - name: Lint | |
| run: poetry run ruff check . | |
| - name: Type Check | |
| run: poetry run mypy . | |
| - name: Test | |
| run: poetry run pytest | |
| - name: Deploy | |
| id: deploy | |
| if: github.ref == 'refs/heads/master' | |
| run: | | |
| poetry config pypi-token.pypi ${{ secrets.PYPI_API_KEY }} | |
| poetry publish --build |