Skip to content

Commit

Permalink
chore(ci): move pytest from CircleCi to Github Actions (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineRR authored Jul 20, 2022
1 parent 6644c6a commit 38a86b3
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 159 deletions.
157 changes: 0 additions & 157 deletions .circleci/config.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/CI.yml → .github/workflows/build-CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: CI
# CI to build the project for Linux, Windows, and MacOS

name: Build CI

on:
push:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/python-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# CI to build the Python code

on: [push, pull_request]

name: Python Continuous integration

jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r robyn/test-requirements.txt
curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Setup Rust part of the project
run: |
source $HOME/.cargo/env
maturin build -i python --release --universal2 --out dist --no-sdist
pip install --force-reinstall dist/robyn*.whl
- name: Test with pytest
run: |
pytest ./integration_tests
2 changes: 2 additions & 0 deletions .github/workflows/rust-CI.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# CI to build, test, format, and lint the Rust code

on: [push, pull_request]

name: Rust Continuous integration
Expand Down
2 changes: 1 addition & 1 deletion robyn/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest==6.2.5
maturin
maturin==0.12.11
watchdog
requests==2.26.0
uvloop==0.16.0
Expand Down

0 comments on commit 38a86b3

Please sign in to comment.