diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index b515088e..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,33 +0,0 @@ - -version: 2 -jobs: - build: - docker: - - image: circleci/python:3.6.1 - - working_directory: ~/repo - - steps: - - checkout - - run: - name: Level synthesis test - command: | - echo -e "y\n" | python3 ./make_level.py testlevel1 "Test Level 1" testskill "Test Skill" - echo -e "y\n" | python3 ./make_level.py testlevel2 "Test Level 2" testskill - - run: - name: Set up environment - command: | - pip3 install --user . - pip3 install --user pytest - pip3 install --user flake8 - git config --global user.name "CircleCI" - git config --global user.email "circleci@example.com" - - run: - name: Running tests - command: | - export PATH=$PATH:$HOME/.local/bin - python3 -m pytest gitgud - - run: - name: flake8 checks - command: | - python3 -m flake8 . diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml new file mode 100644 index 00000000..290fd811 --- /dev/null +++ b/.github/workflows/functional-tests.yml @@ -0,0 +1,45 @@ +name: Run OS tests + +on: + push: + pull_request: + branches: [ master ] + + +jobs: + tests: + runs-on: ${{ matrix.platform }} + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + defaults: + run: + shell: bash + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 1 + + - uses: actions/setup-python@v2 + with: + python-version: '3.6.7' + + - name: Set up environment + run: | + pip install pytest + git config --global user.name "Github Actions" + git config --global user.email "action@github.com" + + - name: Synthesize level + run: | + echo -e "y\n" | python ./make_level.py testlevel1 "Test Level 1" testskill "Test Skill" + echo -e "y\n" | python ./make_level.py testlevel2 "Test Level 2" testskill + + - name: Install Git Gud + run: | + pip install . + + - name: Run tests + run: python -m pytest gitgud diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml new file mode 100644 index 00000000..652b8307 --- /dev/null +++ b/.github/workflows/style.yml @@ -0,0 +1,27 @@ +name: Check PEP8 + +on: + push: + pull_request: + branches: [ master ] + + +jobs: + tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 1 + + - uses: actions/setup-python@v2 + with: + python-version: '3.6.7' + + - name: Set up environment + run: | + pip install flake8 + + - name: Check flake8 + run: python -m flake8 . diff --git a/setup.py b/setup.py index 36fc0207..25ab7df2 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ }, python_requires='>=3.6', install_requires=[ - 'gitpython', + 'gitpython==3.1.7', 'importlib_resources', 'pyyaml', ],