From cc1fcce3718967cd0ac9d0481eef5c3e859b036b Mon Sep 17 00:00:00 2001 From: Matheus Mendes Date: Fri, 24 Nov 2023 14:57:07 -0300 Subject: [PATCH] feat: adding test to CI --- .github/workflows/CI.yml | 21 ++++++++++++++++++++- pyproject.toml | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c1f51f4..71bc5b8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,6 +15,25 @@ permissions: contents: read jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: update + run: | + rustup update + rustup component add clippy + rustup install nightly + - name: lint + run: | + cd rmxl + cargo fmt -- --check + cargo clippy -- -D warnings + - name: test + run: | + cd rmxl + cargo check + cargo test --all linux: runs-on: ubuntu-latest strategy: @@ -24,7 +43,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.12' - name: Build wheels uses: PyO3/maturin-action@v1 with: diff --git a/pyproject.toml b/pyproject.toml index 8a99396..aa143f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "rxml" -requires-python = ">=3.10" +requires-python = ">=3.12" classifiers = [ "Programming Language :: Rust", "Programming Language :: Python :: Implementation :: CPython",