nuitka macOS binary #1012
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: Continuous Integration | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
PYTHON_DEFAULT_VERSION: "3.12" | |
jobs: | |
test-paths: | |
env: | |
B2_TEST_APPLICATION_KEY: ${{ secrets.B2_TEST_APPLICATION_KEY }} | |
B2_TEST_APPLICATION_KEY_ID: ${{ secrets.B2_TEST_APPLICATION_KEY_ID }} | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: echo "$PWD"/b2_main.py | |
# cleanup_buckets: | |
# env: | |
# B2_TEST_APPLICATION_KEY: ${{ secrets.B2_TEST_APPLICATION_KEY }} | |
# B2_TEST_APPLICATION_KEY_ID: ${{ secrets.B2_TEST_APPLICATION_KEY_ID }} | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' }} # TODO: skip this whole job instead | |
# with: | |
# fetch-depth: 0 | |
# - name: Set up Python ${{ env.PYTHON_DEFAULT_VERSION }} | |
# if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' }} # TODO: skip this whole job instead | |
# uses: actions/setup-python@v4 | |
# with: | |
# python-version: ${{ env.PYTHON_DEFAULT_VERSION }} | |
# cache: "pip" | |
# - name: Install dependencies | |
# if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' }} # TODO: skip this whole job instead | |
# run: python -m pip install --upgrade nox pip setuptools | |
# - name: Find and remove old buckets | |
# if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' }} # TODO: skip this whole job instead | |
# run: nox -vs cleanup_buckets | |
# test-nuitka: | |
# needs: cleanup_buckets | |
# env: | |
# B2_TEST_APPLICATION_KEY: ${{ secrets.B2_TEST_APPLICATION_KEY }} | |
# B2_TEST_APPLICATION_KEY_ID: ${{ secrets.B2_TEST_APPLICATION_KEY_ID }} | |
# runs-on: macos-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# with: | |
# fetch-depth: 0 | |
# - name: Set up Python 3.11 | |
# uses: actions/setup-python@v4 | |
# with: | |
# python-version: 3.11 | |
# - name: Install dependencies | |
# run: | | |
# python -m pip install --upgrade nox pip setuptools nuitka | |
# python -m pip install . | |
# - name: Build | |
# id: bundle | |
# run: python -m nuitka --onefile b2_main.py | |
# - name: Run integration tests (with secrets) | |
# if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' }} | |
# run: nox -vs integration -- --sut=`realpath b2_main.bin` -m "require_secrets" --cleanup |