diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59a8566..7c414b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,12 +19,16 @@ jobs: - "3.12" name: Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + lfs: true - name: Setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} architecture: x64 + - name: Check if Git LFS is working" + run: '[ $(stat -c%s "pigar/.db.sqlite3") -gt $((1024 * 1024)) ] || { echo "File is not larger than 1MiB"; exit 1; }' - name: Upgrade pip run: pip install --upgrade pip - name: Run tests with requirements.txt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0433459..605eca2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,11 +7,15 @@ jobs: runs-on: ubuntu-latest name: Build and Publish Python distributions to PyPI steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + with: + lfs: true + - uses: actions/setup-python@v5 with: python-version: 3.11 architecture: x64 + - name: Check if Git LFS is working" + run: '[ $(stat -c%s "pigar/.db.sqlite3") -gt $((1024 * 1024)) ] || { echo "File is not larger than 1MiB"; exit 1; }' - name: Install requirements run: pip install build - name: Build distributions