diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml new file mode 100644 index 0000000..34fb4fb --- /dev/null +++ b/.github/workflows/run_tests.yml @@ -0,0 +1,38 @@ +name: "Run All Tests" + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + workflow_dispatch: + inputs: + forceUpdates: + description: "Forces a snapshot update" + required: false + default: 'false' + +permissions: + contents: read + +jobs: + test: + strategy: + matrix: + python-version: ['2.7', '3.8', '3.10', '3.12', 'pypy3.8', 'pypy3.10', 'pypy3.12'] + os: [ ubuntu-latest, macos-latest, windows-latest ] + fail-fast: false + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '${{ matrix.python-version }}' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + - name: Run the tests + run: | + python -m aenum.test \ No newline at end of file diff --git a/.gitignore b/.gitignore index 22ae106..62a76aa 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ build/ *.pyc *.pyo __pycache__/ +.venv/ +aenum.egg-info/