Skip to content

Merge pull request #8 from GeekMasher/dependabot/pip/development-depe… #23

Merge pull request #8 from GeekMasher/dependabot/pip/development-depe…

Merge pull request #8 from GeekMasher/dependabot/pip/development-depe… #23

Workflow file for this run

name: Python Action Build & Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- 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 pipenv
pipenv sync
- name: Run Tests
run: |
PYTHONPATH=$PWD:$PWD/vendor
if [[ -d "./tests" ]]; then
pipenv run test
fi
- name: Run Main
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
PYTHONPATH=$PWD:$PWD/vendor
pipenv run main
action-test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Run action
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}