# This file is autogenerated by maturin v1.7.0 # To update, run # # maturin generate-ci github # name: CI on: pull_request: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true permissions: contents: read jobs: unit_test: name: Unit tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - run: cargo test --all-features rust_integration_test: name: Rust Integration test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: cd tests/rust-test && ./test.sh python_integration_test: name: Python Integration test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: getsentry/action-setup-venv@v2.1.0 id: venv with: python-version: 3.10.7 - run: cd tests/python-sync && ./test.sh linux: runs-on: ubuntu-latest defaults: run: working-directory: ./szurubooru-client steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: 3.x - name: Build wheels uses: PyO3/maturin-action@v1 with: target: ${{ matrix.platform.target }} args: -F python --release --out dist --find-interpreter -m szurubooru-client/Cargo.toml sccache: 'true' manylinux: auto before-script-linux: | # If we're running on rhel centos, install needed packages. if command -v yum &> /dev/null; then yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic # If we're running on i686 we need to symlink libatomic # in order to build openssl with -latomic flag. if [[ ! -d "/usr/lib64" ]]; then ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so fi else # If we're running on debian-based system. apt update -y && apt-get install -y libssl-dev openssl pkg-config fi