diff options
author | Tim Harder <radhermit@gmail.com> | 2021-03-15 02:30:50 -0600 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2021-03-15 02:43:29 -0600 |
commit | 210d8ffeea0b4d038cf57901abf9c150e45988cf (patch) | |
tree | d10db95b84188f8863632c1299a4551e5002947a /.github/workflows | |
parent | update news (diff) | |
download | pkgdev-210d8ffeea0b4d038cf57901abf9c150e45988cf.tar.gz pkgdev-210d8ffeea0b4d038cf57901abf9c150e45988cf.tar.bz2 pkgdev-210d8ffeea0b4d038cf57901abf9c150e45988cf.zip |
github: test on py3.10 and macos
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/test.yml | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d0d8ca..c457865 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,10 +8,17 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} strategy: matrix: - python-version: [3.8, 3.9] + os: [ubuntu-latest, macos-latest] + python-version: ['3.8', '3.9'] + experimental: [false] + include: + - os: ubuntu-latest + python-version: '3.10.0-alpha - 3.10.0' + experimental: true steps: - name: Checkout code @@ -29,7 +36,20 @@ jobs: key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*') }} restore-keys: ${{ runner.os }}-pip- - - name: Install dependencies + # experimental targets generally lack lxml wheels + - name: Install libxml2 and libxslt development packages + if: ${{ matrix.experimental }} + run: sudo apt install libxml2-dev libxslt-dev python-dev + + # macos needs newer bash + - name: Install macos deps + if: ${{ matrix.os == 'macos-latest' }} + run: | + brew install bash gnu-sed + # enable gnu-sed usage as "sed" + echo "/usr/local/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH + + - name: Install deps run: | python -m pip install --upgrade pip pip install -r requirements/test.txt |