Use an IIFE to Reduce Global Scope Pollution and some refactors #2993
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI worker posix | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-13] | |
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | |
defaults: | |
run: | |
working-directory: worker | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Add packages folder to PYTHONPATH | |
run: | | |
echo "PYTHONPATH=$(pwd)/packages" >> $GITHUB_ENV | |
- name: Run worker tests | |
run: | | |
python -m unittest discover -vb -s tests |